Get current user
curl --request GET \
--url https://api.social-api.ai/v1/users/me \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.social-api.ai/v1/users/me', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.social-api.ai/v1/users/me"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"allowed_platforms": [
"instagram",
"facebook"
],
"avatar_url": "https://example.com/avatar.jpg",
"beta_tester": false,
"billing_blocked": false,
"billing_currency": "usd",
"email": "[email protected]",
"experiment_enrolled": false,
"experiment_variant": "control",
"facebook_page_selection": false,
"id": "550e8400-e29b-41d4-a716-446655440000",
"job_role": "Founder / CEO",
"lock_accounts_to_brand": false,
"onboarding": true,
"plan": "free",
"role": "admin",
"signup_metadata": {},
"use_case": "Managing clients' accounts (agency)",
"billing_block_reason": "past_due",
"billing_blocked_at": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
},
"request_id": "01HZ9X3Q4R5M6N7P8V2K0W1J"
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
},
"request_id": "01HZ9X3Q4R5M6N7P8V2K0W1J"
}Users
Get current user
Returns the authenticated user’s profile (id, email, plan tier, onboarding flag, beta_tester flag, allowed_platforms list, billing_blocked state).
GET
/
users
/
me
Get current user
curl --request GET \
--url https://api.social-api.ai/v1/users/me \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.social-api.ai/v1/users/me', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.social-api.ai/v1/users/me"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"allowed_platforms": [
"instagram",
"facebook"
],
"avatar_url": "https://example.com/avatar.jpg",
"beta_tester": false,
"billing_blocked": false,
"billing_currency": "usd",
"email": "[email protected]",
"experiment_enrolled": false,
"experiment_variant": "control",
"facebook_page_selection": false,
"id": "550e8400-e29b-41d4-a716-446655440000",
"job_role": "Founder / CEO",
"lock_accounts_to_brand": false,
"onboarding": true,
"plan": "free",
"role": "admin",
"signup_metadata": {},
"use_case": "Managing clients' accounts (agency)",
"billing_block_reason": "past_due",
"billing_blocked_at": "2023-11-07T05:31:56Z"
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
},
"request_id": "01HZ9X3Q4R5M6N7P8V2K0W1J"
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
},
"request_id": "01HZ9X3Q4R5M6N7P8V2K0W1J"
}Authorizations
Response
User profile
Example:
BillingBlockReason is why access is paused, empty when it is not. "past_due": a payment failed, and settling it restores access. "ban": the account was suspended for a Terms of Service violation. Paying does not lift it, and every route except this one returns 403 auth.suspended. Contact support to appeal.
Example:
"past_due"