---
updatedAt: 2026-05-20T06:23:36.000Z
agentTools:
  projectIndex: https://developer.remote.com/llms.txt
---

# Company creation

In this guide, you will learn how to 

- Request authorization from companies that you would like to manage on their behalf.
- Create your first company and obtain a company-scoped access token at the same time.

# Before you get started

Before you get started, ensure that

* You have valid credentials. For more details, visit [Authorization for Partners](https://developer.remote.com/docs/authentication-for-partners).
* You have a valid access token using the `client_credentials` grant. For more details, visit [Client Credentials Flow for Partners](https://developer.remote.com/docs/client-credentials-flow-for-partners).

# Creating your first company

If you want to act on behalf of a company that already exists, you would follow the [Authorization Code Flow](https://developer.remote.com/docs/authorization-code-flow) to request consent from an admin of that company. But what about when *your* integration is the one creating the company?

Eligible Remote API partners are allowed to create the company and get the company’s “consent” in a single request. That means you can get the access token for the company at the same time you create the company, eliminating your need to go through the Authorization Code Flow to obtain consent after creating the company through the Remote API.

## How do you know if you’re an eligible Remote API partner?

When making the creating company call with the `action=get_oauth_access_tokens` parameter, if you receive an error response that contains the following body, it’s likely because you’re not yet eligible to create your company and get the consent in the same request yet:

```json
{
    "message": "invalid_params"
}
```

If you’re not sure about your eligibility or would like to request access to this feature, you can reach out to your Remote contact for clarification or email <api-support@remote.com>.

## Checking if your desired country is supported

The Remote API supports the most popular countries requested by our customers, but not every country is supported. To check which countries are supported, you can use the [List countries](https://developer.remote.com/reference/get_index_country) endpoint.

```bash
$ curl --location \
       --request GET \
       --header 'Authorization: Bearer eyJraWQ...' \
       'https://gateway.remote-sandbox.com/eor/v1/countries'
```

If your desired country is not supported, you can reach out to your Remote contact or email <api-support@remote.com> to let us know of your interest to hire in your country of choice.

## Creating the company and getting the consent

In order to create the company and get consent in a single operation, a `POST` request needs to be done against the company creation endpoint with the proper parameters. Here's how to build the request:

* Send a `POST` request to `https://gateway.remote-sandbox.com/v1/companies?action=get_oauth_access_tokens`
* Notice the `action` query string. This parameter informs the Remote API that it also should return a valid `access_token` for managing the newly created company.
* Include the `Authorization` header with a valid access token generated by the <Anchor label="Client Credentials" target="_blank" href="https://tools.ietf.org/html/rfc6749#section-4.4">Client Credentials</Anchor> Flow.
* Include the `Content-Type: application/json` header to indicate the format of the submitted data.
* Send the required fields encoded in JSON format. Ensure that the `country_code` you’re using is a supported country using the [list countries endpoint](https://developer.remote.com/reference/get_supported_countries).
* If you'd like to create a company and its owner with active status in a single request, please provide the optional [address\_details](https://developer.remote.com/reference/get_show_form_country) parameter as well.
* A required step for creating a company in Remote is to accept our Terms of Service (ToS).
  * Company managers need to be aware of our Terms of Service and Privacy Policy, hence it's the responsibility of our partners to advise and ensure company managers read and accept the ToS. The terms have to be accepted only once, before creating a company, and the Remote API will collect the acceptance timestamp as its confirmation.
  * To ensure users read the most recent version of Remote's Terms of Service, their acceptance must be done within the last fifteen minutes prior the company creation action.
  * To retrieve this information, partners can provide an element with any text and a description explaining that by performing that action they are accepting Remote's Term of Service. For instance, the partner can add a checkbox or a "Create Remote Account" button followed by a description saying "By creating an account, you agree to Remote's Terms of Service. Also see Remote's Privacy Policy".

> The [Create a company](https://developer.remote.com/reference/post_create_company) endpoint supports asynchronous processing as well. When enabled, the request returns immediately while the operation continues in the background. To use this feature, include `async` as `true` in the metadata field of your API request.

### Request example

```bash Company Create Request
$ curl --location \
       --request POST \
       --header 'Authorization: Bearer eyJraWQ...' \
       --header 'Content-Type: application/json' \
       'https://gateway.remote-sandbox.com/eor/v1/companies?action=get_oauth_access_tokens' \
       --data-raw '{
  "name": "My Test Co.",
  "tax_number": "123456789",
  "country_code": "CAN",
  "desired_currency": "CAD",
  "company_owner_email": "jane@example.com",
  "company_owner_name": "Jane Smith",
  "terms_of_service_accepted_at": "2022-05-06 16:35:00Z",
  "address_details": {
    "address": "Adress line 1",
    "address_line_2": "Address line 2",
    "city": "San Francisco",
    "postal_code": "90001",
    "state": "CA"
  }
}'
```
```json Create Company Response
{
    "data": {
        "tokens": {
            "refresh_token": "7e70ace....2e74e",
            "expires_in": 3600,
            "access_token": "eyJhb.....o"
        },
        "company": {
            "id": "3b8da86f-6114-443c-a1c0-.......",
            "name": "Partner_Custompany",
            "status": "active",
            "updated_at": "2024-08-02T23:19:40",
            "external_id": null,
            "created_at": "2024-08-02T23:19:39",
            "country_code": "GBR",
            "phone_number": "2403606588",
            "bank_account_details": null,
            "tax_number": "7984465",
            "registration_number": null,
            "desired_currency": "GBP",
            "company_owner_email": "mohit.mahindroo+sampartcustomer@remote.com",
            "company_owner_name": "John Pustomer",
            "address_details": {
                "address": "1709 Broderick St",
                "address_line_2": "Flat number 123",
                "city": "London",
                "postal_code": "SW79 8SY"
            },
            "terms_of_service_accepted_at": "2024-08-02T23:19:38Z"
        }
    }
}
```
```json Fetching Address Details
curl --location 'https://gateway.remote-sandbox.com/v1/companies/schema?country_code=GBR&form=address_details' \
--header 'Authorization: Bearer eyJra...' \
```
```json Address_details Response
{
    "data": {
        "additionalProperties": false,
        "properties": {
            "address": {
                "maxLength": 255,
                "title": "Address",
                "type": "string",
                "x-jsf-presentation": {
                    "inputType": "text"
                }
            },
            "address_line_2": {
                "description": "(Optional) For example, apartment, block, or building number.",
                "maxLength": 255,
                "title": "Address line 2",
                "type": [
                    "string",
                    "null"
                ],
                "x-jsf-presentation": {
                    "inputType": "text"
                }
            },
            "city": {
                "maxLength": 255,
                "title": "City",
                "type": "string",
                "x-jsf-presentation": {
                    "inputType": "text"
                }
            },
            "postal_code": {
                "description": "Make sure you enter the correct UK postal code format. Eg: KY11 9NN, N1 2NU, LS1 8EQ",
                "maxLength": 255,
                "pattern": "^([A-Z]{1,2}[0-9][A-Z0-9]?|[BFS]IQQ) ?[0-9][A-Z]{2}$",
                "title": "Postal code",
                "type": "string",
                "x-jsf-presentation": {
                    "inputType": "text"
                }
            }
        },
        "required": [
            "address",
            "city",
            "postal_code"
        ],
        "type": "object",
        "x-jsf-order": [
            "address",
            "address_line_2",
            "city",
            "postal_code"
        ]
    }
}
```

### Parsing the response

Here’s an example response you might receive:

```json
{
  "data": {
    "company":{
      ...
    },
    "tokens":{
      "access_token": "<ACCESS TOKEN>",
      "refresh_token": "<REFRESH TOKEN>",
      "expires_in": 3600
    }
  }
}
```

The response payload contains two main fields: `company` and `tokens`. The `company` field contains all information regarding the newly created company, such as the name, address, and status.

The `tokens` field contains crucial information about the consent. The `access_token` contains a valid access token that can be used for managing the created company.

Note that the returned `access_tokens` expires after the number of seconds contained in the `expires_in` field has passed. That said, it is fundamental to **store the returned`refresh_token` securely**.

The `refresh_token` is crucial for requesting new access tokens through the [Refresh Token Flow](https://developer.remote.com/docs/refresh-token-flow) as the `access_token` is only valid for 1 hour (equivalent to 3600 seconds).

There are other forms such as `bank_account_details` that can be fetched and data can be mapped as per the schema to be included in creation/updating request for a Company. Find more details [here](https://developer.remote.com/reference/post_create_company).

## Get company details

Once a company has been created, you can call either of the following endpoints to get a detailed response based on your requirements:

### Get company details by ID

The [Show company](https://developer.remote.com/reference/get_show_company) endpoint takes the `company_id` and returns its details. This is useful if you want to check the current status of the company creation process. The response of this request looks like the following:

```json
{
  "data": {
    "company": {
      "address_details": {
        "address": "1709 Broderick St",
        "address_line_2": "Flat number 123",
        "city": "San Francisco",
        "postal_code": "94115",
        "state": "CA"
      },
      "bank_account_details": {
        "account_holder": "Joe Smith",
        "account_number": "31234123123",
        "account_type": "savings",
        "name": "Bank name",
        "ownership_type": "BUSINESS",
        "routing_number": "123124123"
      },
      "company_owner_email": "te@remote.com",
      "company_owner_name": "Joe Smith",
      "company_owner_user_id": "75619adf-8775-4531-9e7d-5b2cbabdc1a8",
      "country_code": "USA",
      "created_at": "2021-07-15T18:18:17Z",
      "desired_currency": "USD",
      "external_id": "00001111",
      "id": "e5a8b061-company-id-4c5c81ac885e",
      "name": "Your Company Name",
      "phone_number": "+1123123456",
      "status": "active",
      "terms_of_service_accepted_at": "2021-10-29T12:39:15Z",
      "updated_at": "2021-07-15T18:18:17Z"
    }
  }
}
```

### Get details of all companies

To get a list of all companies associated with your integration, use the [List all companies](https://developer.remote.com/reference/get_index_company) endpoint. This endpoint returns all companies that your integration has authorized, meaning any company that has completed the authorization flow will be included in the response.

You can also filter the results by providing an `external_id` if your systems assigns an external ID to companies during company creation. A few points to note here:

* The `external_id` search must be an exact match of the external ID provided when creating the company.
* If no matches are found, the response will return an empty list.

## Next up...

After creating a company, you need to subscribe to the following webhooks:

* [company.eor\_hiring.verification\_completed](https://developer.remote.com/reference/companyeor_hiringverification_completed)
* [employment.eor\_hiring.proof\_of\_payment\_accepted](https://developer.remote.com/reference/employmenteor_hiringproof_of_payment_accepted)
* [company.eor\_hiring.reserve\_payment\_requested](https://developer.remote.com/reference/companyeor_hiringreserve_payment_requested)
* [company.eor\_hiring.additional\_information\_required](https://developer.remote.com/reference/companyeor_hiringadditional_information_required)
* [employment.eor\_hiring.invoice\_created](https://developer.remote.com/reference/employmenteor_hiringinvoice_created)
* [company.activated](https://developer.remote.com/reference/companyactivated)
* [company.archived](https://developer.remote.com/reference/companyarchived)

Please refer to the [events details](https://developer.remote.com/docs/available-webhooks) section to learn more about these webhooks.