com.atproto.server.createInviteCodes
POST/xrpc/com.atproto.server.createInviteCodes
This endpoint is part of the atproto PDS server and account management APIs. Requests often require authentication and are made directly to the user's own PDS instance.
To learn more about calling atproto API endpoints like this one, see the API Hosts and Auth guide.
Create invite codes.
Request
- application/json
Body
required
codeCount integerrequired
Default value: 1
useCount integerrequired
forAccounts did[]
Responses
- 200
- 400
- 401
OK
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
codes
object[]
required
account stringrequired
codes string[]required
{
"codes": [
{
"account": "string",
"codes": [
"string"
]
}
]
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
error stringrequired
Possible values: [InvalidRequest
, ExpiredToken
, InvalidToken
]
message stringrequired
{
"error": "InvalidRequest",
"message": "string"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
error required
message stringrequired
{
"message": "string"
}
Loading...