Testing & Sandbox
Sandbox

List feature flags

Changed on

Lists 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 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/sandbox/companies/{company_id}/feature-flags

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

Path parameters

company_id, string required

Company 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

FeatureFlagsResponse required

The feature flags that change the Remote API for a company, sorted by name.

data, object required

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: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