Skip to main content
POST
/
subscriptions
/
sync
Sync subscription from Polar
curl --request POST \
  --url https://app.usechar.ai/api/subscriptions/sync \
  --header 'Authorization: Bearer <token>'
{
  "synced": 123,
  "deleted": 123
}

Documentation Index

Fetch the complete documentation index at: https://docs.usechar.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

WorkOS JWT token. Obtain via WorkOS AuthKit authentication flow. The token must include organization_id claim for organization-scoped endpoints.

Response

OK

Response from syncing subscriptions with Polar

synced
number
required

Number of subscriptions synced from Polar

deleted
number
required

Number of orphaned local subscriptions deleted