/v1/users/invites/{id}/code
POST
/v1/users/invites/{id}/code
const url = 'https://api.reindeer.example.tr/v1/users/invites/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/code';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.reindeer.example.tr/v1/users/invites/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/code \ --header 'Authorization: Bearer <token>'Scope users:write, fresh step-up. Issues the one-time code of an approved invite; the code is
valid until the invite’s own expiry and replaces an earlier code. The issuer is recorded and
the enrolled person can never approve the issuer’s requests (nor the other way round). The code
stops working when its issuer is disabled. Invites that recover an account name it in recovers.
Authorizations
Bölüm başlığı “Authorizations”Parameters
Bölüm başlığı “Parameters”Path Parameters
Bölüm başlığı “Path Parameters”id
required
string format: uuid
Responses
Bölüm başlığı “Responses”One-time code, shown once
Media typeapplication/json
object
code
string
expires_at
string format: date-time
Example generated
{ "code": "example", "expires_at": "2026-04-15T12:00:00Z"}RFC 9457 problem
Media typeapplication/problem+json
object
status
integer
code
string
title
string
detail
string
type
string
Example generated
{ "status": 1, "code": "example", "title": "example", "detail": "example", "type": "example"}