Skip to content

The signed-in member

GET
/me
curl --request GET \
--url https://api.tradeops.cc/v1/me \
--header 'Authorization: Bearer <token>'

Returns the member behind the token and the organisations they can work in.

fields[users]
Array<string>
Allowed values: name email phone avatar two_factor_enabled teams

UserResource

Media typeapplication/vnd.api+json
object
data
required
UserResource
object
id
required
string
type
required
string
Allowed value: users
attributes
object
name
string
email
string | null
phone
string | null
avatar
string | null
two_factor_enabled
boolean
teams

The organisations the member can work in. Use slug as the team in team routes.

Array<object>
object
slug
required
string
name
required
string
role
required
string
Allowed values: owner admin manager rep viewer
timezone
required
string
logo_url
required
string | null

Example

{
"data": {
"type": "users",
"attributes": {
"teams": [
{
"role": "owner"
}
]
}
}
}

Unauthenticated

Media typeapplication/json
object
message
required

Error overview.

string

Example generated

{
"message": "example"
}

Too many requests. Wait for Retry-After seconds before trying again.

Media typeapplication/json
object
message
required
string

Example generated

{
"message": "example"
}
Retry-After
integer

Seconds until you can try again.