Skip to main content
POST
Exchange OTP for agent credential

Body

application/json
registrationId
string<uuid>
required
otp
string
required
Pattern: ^\d{6}$

Response

Credential issued

accessToken
string

The hmok_ Bearer token. Shown once. Store it because headless-minted keys cannot be revealed again.

tokenType
enum<string>
Available options:
Bearer
organizationPublicId
string

The organization public ID (org_...) to use in organization-scoped API routes.

userId
string
scopes
enum<string>[]
Available options:
workspace.create,
workspace.read,
workspace.delete,
workspace.reclassify,
channel.connect,
channel.read,
channel.manage,
messages.read,
billing.read,
billing.manage,
member.invite,
member.manage,
team.read,
team.manage,
support.read,
support.write
credentialPublicId
string