Me
The calling credential: its kind, workspace, permissions and limits right now
GET
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).
apiKeyheader
x-api-key<token>Workspace API key (nrk_…), shown once when created
Default Response
application/json- response
kind*stringValue in
"api_key""oauth""session"orgId*stringMatch
^[0-9a-f]{24}$workspaceId*stringMatch
^[0-9a-f]{24}$permissions*rateLimit*|nullexpiresAt?stringMatch
^(?:(?:\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)))$Format
date-timecurl -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"}