Skip to content

Get your avatar

GET
/spaces/preferences/skin
curl --request GET \
--url https://spaces.work.optidata.cloud/api/spaces/preferences/skin \
--header 'Authorization: Bearer <token>'

The avatar (skin) you appear with in every space of the company, and the avatars you can choose from. When you never picked one (has_skin_preference: false), skin is the one assigned to you by default.

Your avatar and the ones you can choose from.

Media typeapplication/json
object
skin
required

Your avatar (premade:NN or custom:…).

string
has_skin_preference
required

false when you never picked one and skin is your default avatar.

boolean
available_skins
required
Array<string>
is_custom_skin_accepted
required

Whether characters made in the character maker (custom:…) are accepted.

boolean
Examples
Examplepreference
{
"skin": "premade:07",
"has_skin_preference": true,
"available_skins": [
"premade:01",
"premade:02",
"premade:03",
"premade:04",
"premade:05",
"premade:06",
"premade:07",
"premade:08"
],
"is_custom_skin_accepted": true
}

No authentication key was sent.

Media typeapplication/json

Authentication failures use an error key rather than message.

object
error
required
string
Examples
Examplemissing

No bearer token sent

{
"error": "JWT passport exception: Missing bearer token in request"
}

The authentication key is expired or not recognised. Get a fresh one and retry.

Media typeapplication/json

Authentication failures use an error key rather than message.

object
error
required
string
Examples
Exampleexpired
{
"error": "JWT passport expired: Passport expired"
}