Accept Workspace Invitation
POSThttps://cloud.agenta.ai/api/organizations/:org_id/workspaces/:workspace_id/invite/accept
Accept an invitation to a workspace.
Raises: HTTPException: description; status_code: 500 HTTPException: Invitation not found or has expired; status_code: 400 HTTPException: You already belong to this organization; status_code: 400
Returns: JSONResponse: Accepted invitation to workspace; status_code: 200
Request
Path Parameters
org_id Org Idrequired
workspace_id Workspace Idrequired
Query Parameters
project_id Project Idrequired
- application/json
Body
required
token Token (string)required
Responses
- 200
- 422
Successful Response
- application/json
- Schema
Schema
any
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
detail
object[]
{
"detail": [
{
"loc": [
"string",
0
],
"msg": "string",
"type": "string"
}
]
}
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L 'https://cloud.agenta.ai/api/organizations/:org_id/workspaces/:workspace_id/invite/accept' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-H 'Authorization: <API_KEY_VALUE>' \
-d '{
"token": "string"
}'
ResponseClear