API / Internal
POST
/internal/tenant/invitation/claim
Redeem an invitation onto a tenant (service-to-service)
Called by the web app once a sign-up has created the account. Authenticated via the X-Internal-Token header — NOT the public BearerAuth scheme. A refused invitation answers 200 with claimed=false: the account exists either way.
Authentification : clé API Bearer requise.
Corps JSON
Tenant + invitation token
| Nom | Type | Description |
|---|---|---|
| string | — | |
| tenantId | string | — |
| token | string | — |
Exemple curl
curl -X POST https://api.sporee.fr/internal/tenant/invitation/claim \
-H "Authorization: Bearer $SPORE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'Réponses
| Statut | Description | Type |
|---|---|---|
| 200 | OK | claim_invitation.ClaimInvitationResponse |
| 400 | Bad Request | echo.HTTPError |
| 401 | Unauthorized | echo.HTTPError |
| 502 | Bad Gateway | echo.HTTPError |
| 503 | Service Unavailable | echo.HTTPError |
Source machine : openapi.json · opération claimTenantInvitation