Skip to Content
Developers
Publishers

Approve a publisher’s application to a campaign

Needs the publishers:write scope. About scopes

Try it with a test key

Sends to https://api.traki.io

Test keys only. The key stays in this page while it is open and is never saved.

/v1/account/publishers/{id}/approve

Approves the publisher’s pending application to the campaign named in the body, as the portal’s Applications page does. Approval is participation only: no number pool or purchase approval comes with it. 404 when there is no pending application.

Authorization

key
headerAuthorizationBearer <traki_account_…>

Path Parameters

id*string
Formatuuid

Request Body

application/json
  1. body
campaignId*string

The call or lead campaign the publisher applied to.

Formatuuid
note?string
Lengthlength <= 500

Response Body

Success

application/json
  1. response
id*string
Formatuuid
publisher*
campaign*
status*string
decidedAt*string|null
Example Request
curl -X POST 'https://api.traki.io/v1/account/publishers/497f6eca-6276-4993-bfeb-53cbbbba6f08/approve' \  -H "Authorization: Bearer $TRAKI_KEY" \  -H 'Content-Type: application/json' \  -H 'Idempotency-Key: a-unique-id-for-this-change' \  -d '{  "campaignId": "13f8bf6d-dc27-4a04-bffe-6e5b13c19ddf"}'
Example Response
{  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",  "publisher": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "externalId": "string",    "name": "string"  },  "campaign": {    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",    "kind": "call",    "name": "string"  },  "status": "string",  "decidedAt": "string"}