Skip to content

Who is signed in

GET
/api/me
curl --request GET \
--url https://forge.example.com/api/me \
--header 'Authorization: Bearer <token>'

The person, their organization and their roles. Called with an API key: the service account, with serviceAccount true and no address.

OK

Media typeapplication/json
object
id
required
string format: uuid
email
required
string
displayName
required
string
roles
required
Array<string>
organization
required
object
id
required
string format: uuid
name
required
string
slug
required
string
trial
One of:
null
secondStepNeeded
boolean
serviceAccount
boolean
demo
One of:
null

Example

{
"secondStepNeeded": false
}

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