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

NomTypeDescription
emailstring
tenantIdstring
tokenstring

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

StatutDescriptionType
200OKclaim_invitation.ClaimInvitationResponse
400Bad Requestecho.HTTPError
401Unauthorizedecho.HTTPError
502Bad Gatewayecho.HTTPError
503Service Unavailableecho.HTTPError

Source machine : openapi.json · opération claimTenantInvitation