Read an invitation
POST
/api/invitations/describe
const url = 'https://forge.example.com/api/invitations/describe';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"token":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://forge.example.com/api/invitations/describe \ --header 'Content-Type: application/json' \ --data '{ "token": "example" }'Takes the token from the invitation link and answers the organization, the address it was sent to, when it ends and the ways in the organization allows. A token that is unknown, used, withdrawn or expired is refused.
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
token
required
string
Example generated
{ "token": "example"}Responses
Section titled “Responses”OK
Media typeapplication/json
object
organization
required
string
email
required
string
expiresAt
required
string format: date-time
methods
required
Array<string>
Example generated
{ "organization": "example", "email": "example", "expiresAt": "2026-04-15T12:00:00Z", "methods": [ "example" ]}default
Section titled “default”A refusal or an error, as a problem document. A model or draft you may not see answers 404, as one that does not exist.
Media typeapplication/problem+json
object
type
string
title
string
status
integer
detail
string
instance
string
Example generated
{ "type": "example", "title": "example", "status": 1, "detail": "example", "instance": "example"}