Skip to main content
PATCH
/
users
/
me
Update current user
curl --request PATCH \
  --url https://api.social-api.ai/v1/users/me \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data @- <<EOF
{
  "onboarding": false,
  "referral": "Google search",
  "use_case": "Managing my own brand's social accounts"
}
EOF
{
  "allowed_platforms": [
    "instagram",
    "facebook"
  ],
  "avatar_url": "https://example.com/avatar.jpg",
  "beta_tester": false,
  "email": "user@example.com",
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "onboarding": true,
  "plan": "free"
}

Authorizations

Authorization
string
header
required

Prefix your API key with "Bearer ". Example: Authorization: Bearer sapi_key_...

Body

application/json

Fields to update

onboarding
boolean
Example:

false

referral
string
Example:

"Google search"

use_case
string
Example:

"Managing my own brand's social accounts"

Response

Updated user profile

allowed_platforms
string[]
Example:
["instagram", "facebook"]
avatar_url
string
Example:

"https://example.com/avatar.jpg"

beta_tester
boolean
Example:

false

email
string
Example:

"user@example.com"

id
string
Example:

"550e8400-e29b-41d4-a716-446655440000"

onboarding
boolean
Example:

true

plan
string
Example:

"free"