curl --request DELETE \
--url https://www.asteragents.com/api/admin/invitations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"invitationIds": [
"orginv_2ABC123DEF"
]
}
'
{
"success": true,
"total": 2,
"successful": 2,
"failed": 0,
"results": [
{
"invitationId": "orginv_2ABC123DEF",
"success": true
},
{
"invitationId": "orginv_2XYZ789GHI",
"success": true
}
]
}{
"success": true,
"total": 123,
"successful": 123,
"failed": 123,
"results": [
{}
],
"errors": [
{}
]
}{
"error": "User is not part of any organization"
}{
"error": "Unauthorized: User is not an admin in this organization"
}{
"error": "Internal Server Error"
}Admin API
Revoke invitations
Revoke multiple pending invitations in a single request.
Once revoked, the invitation link will no longer work. You’ll need to send a new invitation if needed.
DELETE
/
admin
/
invitations
curl --request DELETE \
--url https://www.asteragents.com/api/admin/invitations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"invitationIds": [
"orginv_2ABC123DEF"
]
}
'
{
"success": true,
"total": 2,
"successful": 2,
"failed": 0,
"results": [
{
"invitationId": "orginv_2ABC123DEF",
"success": true
},
{
"invitationId": "orginv_2XYZ789GHI",
"success": true
}
]
}{
"success": true,
"total": 123,
"successful": 123,
"failed": 123,
"results": [
{}
],
"errors": [
{}
]
}{
"error": "User is not part of any organization"
}{
"error": "Unauthorized: User is not an admin in this organization"
}{
"error": "Internal Server Error"
}Authorizations
JWT token from Clerk authentication.
Must be from a user with org:admin role.
Body
application/json
Array of invitation IDs to revoke
Required array length:
1 - 50 elements