API referenceTikTok Business

GET /api/v1/accounts/{id}/tiktok-business/posts/{postId}/ad-authorization

Spark Ads authorization status of a post (/business/post/authorize/status/, needs biz.spark.auth): the authorization code, its status and validity. TikTok answers an error when the post has no code

GET
/api/v1/accounts/{id}/tiktok-business/posts/{postId}/ad-authorization

Authorization

BearerAuth
headerAuthorizationBearer <token>

API key sk_...

Path Parameters

id*string

Account id

postId*string

TikTok post id, or a Postgale post id published to this account

Response Body

{accountId, platform, authorization}

application/json
  1. response
accountId?string
platform?string
authorization?
Example Request
curl -X GET 'https://example.com/api/v1/accounts/string/tiktok-business/posts/string/ad-authorization'
Example Response
{  "accountId": "string",  "platform": "string",  "authorization": {    "postId": "string",    "enabled": true,    "authCode": "string",    "status": "string",    "startTime": "string",    "endTime": "string",    "days": 0  }}