Companies
Company Management

List all companies

Changed on

List all companies that authorized your integration to act on their behalf. In other words, these are all the companies that your integration can manage. Any company that has completed the authorization flow for your integration will be included in the response. With any token other than a client credentials token, the list holds only that token's company.

Authentication

This endpoint accepts any one of the following token types:

  • Company-scoped access token (OAuth2AuthorizationCode) — obtained by a company manager through the Authorization Code flow or the Refresh Token flow. See Authentication for partners.
  • Company-scoped access token (assertion) (OAuth2CompanyManagerAssertion) — obtained through the urn:ietf:params:oauth:grant-type:jwt-bearer grant for a company manager. See OAuth Assertion.
  • Client credentials access token (OAuth2ClientCredentials) — obtained through the Client Credentials flow or the Refresh Token flow. See Authentication for partners.
  • Customer API token (CustomerAPIToken) — generated by the customer on their Integration Settings page, with the scopes they choose there. See Authorization for customers.

Scopes

Any one of the scopes in a token type's row is enough. all:read and all:write work too.

Token typeCategoryRead only ScopeWrite only Scope (read access implicit)
Company-scoped access tokenManage company resources (company_admin)View companies (company:read)-
Company-scoped access token (assertion)Manage company resources (company_admin)View companies (company:read)-
Client credentials access tokenManage company resources (company_admin)View companies (company:read)Manage companies (company:write)
Customer API tokenManage company resources (company_admin)View companies (company:read)-
get/v1/companies

Request

  • Base URL
    https://gateway.remote.com
  • Auth
    • OAuth 2
      Authorization code/auth/oauth2/authorize
      Token URL/auth/oauth2/token
      Scopeshttps://gateway.remote.com/company.manage
    • or OAuth 2
      Authorization code/auth/oauth2/authorize
      Token URL/auth/oauth2/token
      Scopescompany:read
    • or OAuth 2
      Authorization code/auth/oauth2/authorize
      Token URL/auth/oauth2/token
      Scopesall:read
    • or OAuth 2
      Authorization code/auth/oauth2/authorize
      Token URL/auth/oauth2/token
      Scopesall:write
    • or OAuth 2
      Client credentials
      Token URL/auth/oauth2/token
      Scopescompany:read
    • or OAuth 2
      Client credentials
      Token URL/auth/oauth2/token
      Scopesall:read
    • or OAuth 2
      Client credentials
      Token URL/auth/oauth2/token
      Scopesall:write
    • or OAuth 2
      Client credentials
      Token URL/auth/oauth2/token
      Scopeshttps://gateway.remote.com/company.manage
    • or OAuth 2
      Client credentials
      Token URL/auth/oauth2/token
      Scopescompany:read
    • or OAuth 2
      Client credentials
      Token URL/auth/oauth2/token
      Scopesall:read
    • or OAuth 2
      Client credentials
      Token URL/auth/oauth2/token
      Scopesall:write
    • or HTTP bearer

Query parameters

external_id, string

External ID

Headers

Authorization, string required

An access token of one of the types listed in this endpoint's Authentication section, as Bearer <ACCESS TOKEN>.

A token from the Refresh Token flow is of the same type as the token issued with that refresh token.

Response

Success

CompaniesResponse required

Shows a list of companies

companies, Company[]

Example response

{
  "data": {
    "companies": [
      {
        "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",
        "default_legal_entity_credit_risk_status": "no_deposit_required",
        "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"
      }
    ]
  }
}

Changes

    • info

      the security scope company:read was added to the endpoint's security scheme OAuth2CompanyManagerAssertion

    • info

      the security scope https://gateway.remote.com/company.manage was added to the endpoint's security scheme OAuth2AuthorizationCode

    • info

      the security scope https://gateway.remote.com/company.manage was added to the endpoint's security scheme OAuth2ClientCredentials

    3 more changes in this revision