Skip to content
EleforkDocs
Internal preview. Elefork is not publicly available yet; APIs and hostnames may change.

Accept an invitation

POST
/v1/invitations/accept
curl --request POST \
--url https://api.elefork.com/v1/invitations/accept \
--header 'Content-Type: application/json' \
--cookie elefork_session=<elefork_session> \
--data '{ "token": "example" }'

The invitation must be addressed to the signed-in user’s email.

Media typeapplication/json
object
token
required
string

Example generated

{
"token": "example"
}

Joined

Media typeapplication/json
object
org_id
required
string
role
required
string

Example generated

{
"org_id": "example",
"role": "example"
}

Error

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string

Example

{
"error": {
"code": "not_found"
}
}

Error

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string

Example

{
"error": {
"code": "not_found"
}
}

Error

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string

Example

{
"error": {
"code": "not_found"
}
}

Temporarily unavailable; retry after the Retry-After seconds. Codes: database_unavailable (the metadata database is failing over) and cube_admission (a compute node runs a sandbox shim below the platform minimum, so creates, forks, checkpoints and resets are refused until it is upgraded).

Media typeapplication/json
object
error
required
object
code
required
string
message
required
string

Example

{
"error": {
"code": "not_found"
}
}
Retry-After
integer