Publishers
Approve a publisher’s application to a campaign
Needs the publishers:write scope. About scopes
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.
keyheader
AuthorizationBearer <traki_account_…>id*stringFormat
uuidapplication/json- body
campaignId*stringThe call or lead campaign the publisher applied to.
Format
uuidnote?stringLength
length <= 500Success
application/json- response
id*stringFormat
uuidpublisher*campaign*status*stringdecidedAt*string|nullcurl -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"}