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
}

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