Trillet AI logo

Get the current key

Trillet OEM API: Returns the key's mode, scopes, tenant restriction and partner account.

GEThttps://api.trillet.ai/partner/v1/key

Returns the key's mode, scopes, tenant restriction and partner account. Needs no scope.

Loading code example
Loading code example

Authorizations

Authorizationstringheaderrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

application/json

The key.

objectstringrequired
idstringrequired
Pattern: ^[a-fA-F0-9]{24}$
mode"live" | "sandbox"required
Allowed values: "live" | "sandbox"
scopesarray<"tenants:read" | "tenants:write" | "resources:read" | "resources:write" | "calls:write" | "numbers:write" | "templates:read" | "templates:write" | "events:read" | "webhooks:write" | "usage:read" | "sessions:write">required
tenantIdsarray<string>required

Empty when the key is not restricted to some tenants.

partnerobjectrequired
partner.idstring
Pattern: ^[a-fA-F0-9]{24}$
partner.namestring | null
partner.maxTenantsinteger | null
partner.tenantCountinteger

Last updated on