Skip to content

Read an invitation

POST
/api/invitations/describe
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.

Media typeapplication/json
object
token
required
string

Example generated

{
"token": "example"
}

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"
]
}

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"
}