mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-07-19 02:21:52 +00:00
51 lines
1.0 KiB
Plaintext
51 lines
1.0 KiB
Plaintext
---
|
|
title: "Accept Invitation"
|
|
api: "POST /api/v1/invitations/accept"
|
|
description: "Accept an invitation to an existing tenant."
|
|
---
|
|
|
|
Accept an invitation to join a tenant. This invitation cannot be expired and the emails must match.
|
|
|
|
## Request Body
|
|
|
|
The request must follow the JSON:API specification format:
|
|
|
|
```json
|
|
{
|
|
"data": {
|
|
"type": "invitations",
|
|
"attributes": {
|
|
"token": "invitation-token"
|
|
}
|
|
}
|
|
}
|
|
```
|
|
|
|
### Attributes
|
|
|
|
- `token` (required) - The invitation token received via email
|
|
|
|
## Example Request
|
|
|
|
```bash
|
|
curl -X POST "https://api.prowler.com/api/v1/invitations/accept" \
|
|
-H "Authorization: Bearer YOUR_JWT_TOKEN" \
|
|
-H "Content-Type: application/vnd.api+json" \
|
|
-d '{
|
|
"data": {
|
|
"type": "invitations",
|
|
"attributes": {
|
|
"token": "your-invitation-token"
|
|
}
|
|
}
|
|
}'
|
|
```
|
|
|
|
## Response
|
|
|
|
Returns a success response indicating you have been added to the tenant.
|
|
|
|
<Note>
|
|
The email address associated with your account must match the email address to which the invitation was sent.
|
|
</Note>
|