Skip to main content
POST
Create a one-time code that makes whoever sends it to the bot, in a direct message, the owner of an installation that has none (10 min, single use). From a chat, only a person who already holds admin can ask, and the code is theirs alone.

Authorizations

Authorization
string
header
required

Runtime context-key (rctx_*) issued by the Ravi gateway. Used by ordinary gateway operations; not accepted by Console-only operations. Bootstrap the first key with ravi daemon init-admin-key; rotate, derive, and revoke via the ravi context family. Specs: runtime/context-keys, sdk/auth.

Body

application/json
execute
boolean

Create the code. Without it, prints the plan and exits 3

Response

Success — body conforms to the @Returns schema.

boundToContactId
string | null
required
code
string
required
codeId
string
required
expiresAt
string
required
hints
string[]
required
issuedBy
enum<string>
required
Available options:
operator-terminal,
contact
status
string
required
Allowed value: "issued"