com.atproto.admin.getInviteCodes
GET/xrpc/com.atproto.admin.getInviteCodes
This endpoint is part of the atproto PDS management APIs. Requests usually require admin authentication and are made directly to the PDS instance.
To learn more about calling atproto API endpoints like this one, see the API Hosts and Auth guide.
Get an admin view of invite codes.
Request
Query Parameters
sort string
Possible values: [recent
, usage
]
Default value: recent
limit integer
Possible values: >= 1
and <= 500
Default value: 100
cursor string
Responses
- 200
- 400
- 401
OK
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
]
cursor string
codes
object[]
required
code stringrequired
available integerrequired
disabled booleanrequired
forAccount stringrequired
createdBy stringrequired
createdAt date-timerequired
uses
object[]
required
usedBy didrequired
usedAt date-timerequired
{
"cursor": "string",
"codes": [
{
"code": "string",
"available": 0,
"disabled": true,
"forAccount": "string",
"createdBy": "string",
"createdAt": "2024-11-04T00:29:30.204Z",
"uses": [
{
"usedBy": "string",
"usedAt": "2024-11-04T00:29:30.204Z"
}
]
}
]
}
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...