Update current user
curl --request PATCH \
--url https://api.social-api.ai/v1/users/me \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"job_role": "Founder / CEO",
"lock_accounts_to_brand": true,
"onboarding": false,
"referral": "Google search",
"signup_metadata": {},
"use_case": "Managing my own brand's social accounts"
}
EOFconst options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
job_role: 'Founder / CEO',
lock_accounts_to_brand: true,
onboarding: false,
referral: 'Google search',
signup_metadata: {},
use_case: 'Managing my own brand\'s social accounts'
})
};
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"
payload = {
"job_role": "Founder / CEO",
"lock_accounts_to_brand": True,
"onboarding": False,
"referral": "Google search",
"signup_metadata": {},
"use_case": "Managing my own brand's social accounts"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, 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"
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
},
"request_id": "01HZ9X3Q4R5M6N7P8V2K0W1J"
}Users
Update current user
Updates the authenticated user’s profile. Supports setting onboarding=false to mark onboarding as complete, and optionally recording use_case, referral, job_role and signup_metadata. The response reflects the current billing_blocked state, unaffected by this update. The response includes the caller’s team role: “admin”, “developer”, or "" for the account owner.
PATCH
/
users
/
me
Update current user
curl --request PATCH \
--url https://api.social-api.ai/v1/users/me \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
{
"job_role": "Founder / CEO",
"lock_accounts_to_brand": true,
"onboarding": false,
"referral": "Google search",
"signup_metadata": {},
"use_case": "Managing my own brand's social accounts"
}
EOFconst options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
job_role: 'Founder / CEO',
lock_accounts_to_brand: true,
onboarding: false,
referral: 'Google search',
signup_metadata: {},
use_case: 'Managing my own brand\'s social accounts'
})
};
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"
payload = {
"job_role": "Founder / CEO",
"lock_accounts_to_brand": True,
"onboarding": False,
"referral": "Google search",
"signup_metadata": {},
"use_case": "Managing my own brand's social accounts"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, 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"
}{
"error": {
"code": "resource.not_found",
"message": "Account not found",
"meta": {}
},
"request_id": "01HZ9X3Q4R5M6N7P8V2K0W1J"
}Authorizations
Body
application/json
Fields to update
Response
Updated 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"