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

IAM

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

All groups

Role × permission matrix

GET/iam/{scope}/{scopeId}/matrix

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

Parameters

NameTypeDescription
scoperequiredstring, path

Response

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

Replace the permission keys of the listed roles

PUT/iam/{scope}/{scopeId}/matrix

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

Parameters

NameTypeDescription
scoperequiredstring, path

Request body application/json

FieldTypeDescription
rolesrequiredobject[]
roles[].role_idrequiredstring
roles[].permissionsrequiredstring[]

Response

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

My effective permissions in a business or channel

GET/iam/{scope}/{scopeId}/me

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

Parameters

NameTypeDescription
scoperequiredstring, path
scopeIdrequiredstring, path

Response

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

Assign (or clear) a member's role

PUT/iam/{scope}/{scopeId}/members/{memberId}/role

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

Parameters

NameTypeDescription
scoperequiredstring, path
memberIdrequiredstring, path

Request body application/json

FieldTypeDescription
role_idstringRole to assign; null clears it (the legacy permission level applies again)

Response

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

Permission keys of the scope (core + installed apps)

GET/iam/{scope}/{scopeId}/permissions

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

Parameters

NameTypeDescription
scoperequiredstring, path

Response

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

List roles of a business or channel

GET/iam/{scope}/{scopeId}/roles

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

Parameters

NameTypeDescription
scoperequiredstring, path

Response

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

Create a role

POST/iam/{scope}/{scopeId}/roles

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

Parameters

NameTypeDescription
scoperequiredstring, path

Request body application/json

FieldTypeDescription
titlerequiredstringAt most 60 characters. Example: "Sales"
descriptionstringAt most 255 characters. Example: "Leads, contacts, orders and tickets"
permissionsstring[]Permission keys (see GET /iam/:scope/:scopeId/permissions)

Response

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

Rename a role or replace its permissions

PATCH/iam/{scope}/{scopeId}/roles/{roleId}

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

Parameters

NameTypeDescription
scoperequiredstring, path
roleIdrequiredstring, path

Request body application/json

FieldTypeDescription
titlestringAt most 60 characters. Example: "Sales"
descriptionstringAt most 255 characters. Example: "Leads, contacts, orders and tickets"
permissionsstring[]Permission keys (see GET /iam/:scope/:scopeId/permissions)

Response

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

Archive a role (409 while members hold it)

DELETE/iam/{scope}/{scopeId}/roles/{roleId}

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

Parameters

NameTypeDescription
scoperequiredstring, path
roleIdrequiredstring, path

Response

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

The built-in levels (Owner, Admin, Manager, Editor, Viewer) of a business and a channel, with what each one holds

GET/iam/levels

Public: no sign-in needed.

Response

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