Profiles work like this: Every user on universecloud has a root profile. There can me multiple sub profiles that belong to this root profile. They will be created via an oauth app with a specific clientId. (Registration/Login on your own platform) A Profile holds some data about the root or sub profile with some authentication details like groups, plans or metadata
Reads the authenticated profile
GET
/profile
curl \
--request GET 'https://api.universecloud.io/profile' \
--header "X-Api-Key: $API_KEY"
Response examples (200)
{
"id": "string",
"subject": "string",
"accountId": "string",
"clientId": "string",
"branch": "string",
"plans": [
{
"planName": "pro",
"since": "2023-06-21T12:34:56+00:00",
"until": "2023-06-21T12:34:56+00:00",
"metadata": {
"seats": 5
}
}
],
"avatar": "string",
"email": "user@tld.com",
"settings": {
"themeColor": "blue"
},
"metadata": {
"plan": "super-cool-plan"
},
"groups": [
"admin"
],
"createdAt": "2023-06-21T12:34:56+00:00",
"updatedAt": "2023-06-21T12:34:56+00:00"
}