List feature flags
Changed onLists the feature flags that change how the Remote API behaves for a company, whether each is on, and what it changes. Use it to see why a flow behaves the way it does in Sandbox, for example why contractors are invited without the pricing plan and contract details steps.
applies_to says who a flag's state is for: company flags can differ between companies; environment flags are the same for every company in the environment. The two job_title_eligibility_check_* flags are set per company instead, and are not evaluated for the caller. Any other company flag that depends on the caller is evaluated for the token's user with a Company-scoped access token (either kind) or a Customer API token. A Client credentials access token has no user, so it gets the company owner's state, for reference only: the endpoints these flags change don't accept that token, so use one of the other tokens to see the state for its user.
Only flags that change the public API are listed, and the list can change. A flag that is removed no longer changes anything: its behaviour is then the same for every company, so check the API changelog. The state in Sandbox doesn't tell you the state in production.
This endpoint is only available in Sandbox, otherwise it will respond with a 404.
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
Path parameters
Company 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
The feature flags that change the Remote API for a company, sorted by name.
Example response
{
"data": {
"feature_flags": [
{
"applies_to": "company",
"description": "Contractors created through the API are invited right away, so the pricing plan and contract details steps are skipped. Creating a contractor needs a Company-scoped access token (either kind) or a Customer API token; for a Client credentials access token, the state shown is the company owner's, for reference only.",
"enabled": true,
"name": "remote_api_eligible_companies_auto_invitation"
}
]
}
}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