Skip to main content
PATCH
/
brands
/
{slug}
/
tokens
/
{platform}
Refresh a platform token
curl --request PATCH \
  --url https://app.autoposting.ai/api-proxy/brands/{slug}/tokens/{platform} \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "tokenId": "tok_01HXYZ",
    "expiresAt": "2025-07-01T00:00:00Z",
    "refreshedAt": "2024-01-10T00:00:00Z"
  }
}

Authorizations

Authorization
string
header
required

API key as Authorization: Bearer sk-social-...

Path Parameters

slug
string
required

Brand slug.

Example:

"acme-corp"

platform
enum<string>
required

Platform identifier.

Available options:
x,
linkedin,
instagram,
threads,
youtube
Example:

"x"

Response

Token refreshed.

success
boolean
Example:

true

data
object