Preview. This site is still being built. Features, prices and terms may change, and nothing here is a binding offer. Read the preview notice

Preview. Still being built; nothing here is a binding offer. Details

Features

17 routes. Paths are relative to https://api.intersink.com/v1.

All groups

My beta features in a channel (X-App-Key or x-ref, else my channel): what I can try and what I turned on

GET/features/beta

Needs a signed-in user (Bearer token or access_token cookie).

Response

200. The payload in data is not described in the spec yet.

Turn beta features on or off for me: { enabled } for every beta feature, or { enabled, key } for one

PUT/features/beta

Needs a signed-in user (Bearer token or access_token cookie).

Response

200. The payload in data is not described in the spec yet.

Every flag of the channel (managers), with how many users opted in to beta

GET/features/channels/{channelId}/flags

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path

Response

200. The payload in data is not described in the spec yet.

Add a flag: { key, name, description?, state?, include_admins?, include_team?, beta_optin?, user_ids?, rollout_percent?, reason? }

POST/features/channels/{channelId}/flags

Needs a signed-in user (Bearer token or access_token cookie).

state defaults to internal. Keys are lower case (checkout.new-flow) and never change.

Parameters

NameTypeDescription
channelIdrequiredstring, path

Response

201. The payload in data is not described in the spec yet.

One flag (managers)

GET/features/channels/{channelId}/flags/{key}

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path
keyrequiredstring, path

Response

200. The payload in data is not described in the spec yet.

Change a flag: any field of the create body, plus version (the one you read: a change made meanwhile is refused with 409 FEATURE_FLAG_CHANGED)

PATCH/features/channels/{channelId}/flags/{key}

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path
keyrequiredstring, path

Response

200. The payload in data is not described in the spec yet.

Delete a flag (a platform default goes back to its default); ?reason=

DELETE/features/channels/{channelId}/flags/{key}

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path
keyrequiredstring, path
reasonrequiredstring, query

Response

200. The payload in data is not described in the spec yet.

Kill switch: turn the feature off for everyone now, whatever its state: { reason? }

POST/features/channels/{channelId}/flags/{key}/kill

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path
keyrequiredstring, path

Response

201. The payload in data is not described in the spec yet.

Switch a killed feature back on (its state applies again): { reason? }

POST/features/channels/{channelId}/flags/{key}/restore

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path
keyrequiredstring, path

Response

201. The payload in data is not described in the spec yet.

Every change to the channel's flags, newest first (?key=, ?limit= up to 100, ?before= next_before of the last page)

GET/features/channels/{channelId}/history

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path
keyrequiredstring, query
limitrequiredstring, query
beforerequiredstring, query

Response

200. The payload in data is not described in the spec yet.

What one user of the channel gets (managers): ?user_id=

GET/features/channels/{channelId}/preview

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
channelIdrequiredstring, path
user_idrequiredstring, query

Response

200. The payload in data is not described in the spec yet.

Public: the caller's resolved feature flags for a channel, in one call

GET/features/resolve

Public: no sign-in needed.

The channel comes from X-App-Key, else the x-ref header, else the signed-in user's channel. Signed in, the flags are resolved for that person (admins and team, listed users, beta opt-in, percentage rollout); signed out, visitor_id (your app's own random id, 8 to 64 of A-Z a-z 0-9 _ -) places the visitor in percentage rollouts. Internal flags that are off for the caller are left out. Cache for ttl seconds.

Parameters

NameTypeDescription
visitor_idstring, query
x-refstring, headerChannel id, when no app key is sent
X-App-Keystring, header

Response

200. The payload in data is not described in the spec yet.

Server: the flags one of your users gets (features:read): ?user_id= or ?visitor_id=

GET/features/v1/evaluate

Needs a signed-in user (Bearer token or access_token cookie).

For your own backend, so a route of a feature that isn't GA refuses people who don't have it. Same answer as /features/resolve for that person.

Parameters

NameTypeDescription
user_idrequiredstring, query
visitor_idrequiredstring, query

Response

200. The payload in data is not described in the spec yet.

Server: every flag of the key's channel (features:read)

GET/features/v1/flags

Needs a signed-in user (Bearer token or access_token cookie).

Response

200. The payload in data is not described in the spec yet.

Server: change a flag (features:write), e.g. promote it from CI. Same body as the managers' route

PATCH/features/v1/flags/{key}

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
keyrequiredstring, path

Response

200. The payload in data is not described in the spec yet.

Server: kill switch (features:write), e.g. from an alert: { reason? }

POST/features/v1/flags/{key}/kill

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
keyrequiredstring, path

Response

201. The payload in data is not described in the spec yet.

Server: switch a killed feature back on (features:write): { reason? }

POST/features/v1/flags/{key}/restore

Needs a signed-in user (Bearer token or access_token cookie).

Parameters

NameTypeDescription
keyrequiredstring, path

Response

201. The payload in data is not described in the spec yet.