TryzenAPI
Me

The calling credential: its kind, workspace, permissions and limits right now

GET
/v1/me/credential

Access: an API key (or an org-wide key naming the workspace).

Works with an API key (x-api-key), an OAuth access token from a connected app (Authorization: Bearer nro_…) and a signed-in session (with x-workspace-id). permissions are what this credential can do now: for a key or a grant, its scopes ∩ the person's current permissions. expiresAt is set for an OAuth access token (refresh before it).

Authorization

apiKey
headerx-api-key<token>

Workspace API key (nrk_…), shown once when created

Response Body

Default Response

application/json
  1. response
kind*string
Value in"api_key""oauth""session"
orgId*string
Match^[0-9a-f]{24}$
workspaceId*string
Match^[0-9a-f]{24}$
permissions*
rateLimit*|null
expiresAt?string
Match^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
Formatdate-time
Example Request
curl -X GET 'https://api.tryzen.co/v1/me/credential'
Example Response
{  "kind": "api_key",  "orgId": "string",  "workspaceId": "string",  "permissions": {    "senders": "none",    "leads": "none",    "network": "none",    "campaigns": "none",    "inbox": "none",    "integrations": "none",    "api": "none",    "notifications": "none",    "inboxReply": true,    "crmExport": true  },  "rateLimit": {    "limit": -9007199254740991,    "windowSeconds": -9007199254740991  },  "expiresAt": "2019-08-24T14:15:22Z"}