List all companies
Changed onList 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 type | Category | Read only Scope | Write only Scope (read access implicit) |
|---|---|---|---|
| Company-scoped access token | Manage 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 token | Manage company resources (company_admin) | View companies (company:read) | Manage companies (company:write) |
| Customer API token | Manage company resources (company_admin) | View companies (company:read) | - |
Request
- Base URLhttps://gateway.remote.com
- Auth
- OAuth 2Authorization code/auth/oauth2/authorizeToken URL/auth/oauth2/tokenScopeshttps://gateway.remote.com/company.manage
- or OAuth 2Authorization code/auth/oauth2/authorizeToken URL/auth/oauth2/tokenScopescompany:read
- or OAuth 2Authorization code/auth/oauth2/authorizeToken URL/auth/oauth2/tokenScopesall:read
- or OAuth 2Authorization code/auth/oauth2/authorizeToken URL/auth/oauth2/tokenScopesall:write
- or OAuth 2Client credentialsToken URL/auth/oauth2/tokenScopescompany:read
- or OAuth 2Client credentialsToken URL/auth/oauth2/tokenScopesall:read
- or OAuth 2Client credentialsToken URL/auth/oauth2/tokenScopesall:write
- or OAuth 2Client credentialsToken URL/auth/oauth2/tokenScopeshttps://gateway.remote.com/company.manage
- or OAuth 2Client credentialsToken URL/auth/oauth2/tokenScopescompany:read
- or OAuth 2Client credentialsToken URL/auth/oauth2/tokenScopesall:read
- or OAuth 2Client credentialsToken URL/auth/oauth2/tokenScopesall:write
- or HTTP bearer
Query parameters
External ID
Headers
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
Shows a list of companies
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:readwas added to the endpoint's security schemeOAuth2CompanyManagerAssertion - info
the security scope
https://gateway.remote.com/company.managewas added to the endpoint's security schemeOAuth2AuthorizationCode - info
the security scope
https://gateway.remote.com/company.managewas added to the endpoint's security schemeOAuth2ClientCredentials
3 more changes in this revision
- info