com.atproto.server.createInviteCode
POST/xrpc/com.atproto.server.createInviteCode
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 an invite code.
Request
- application/json
Body
required
useCount integerrequired
forAccount did
Responses
- 200
- 400
- 401
OK
- application/json
- Schema
- Example (from schema)
Schema
code stringrequired
{
"code": "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...