Publishers
Create a publisher
Needs the publishers:write scope. About scopes
Creates a publisher (a sub-publisher sending traffic under the account). Creation is silent: TRAKI sends no email and no portal invitation unless invite is given. externalId must be unique in the account (409 external_id_taken).
keyheader
AuthorizationBearer <traki_account_…>application/json- body
externalId?stringThe account’s own id for the record, unique in the account.
Length
1 <= length <= 200name*stringLength
2 <= length <= 120companyName?|nullcontactName?|nullcontactEmail?|nullcontactPhone?|nullmodules?Which modules the party works in: call leads, form leads or both.
payout?How and when the publisher is paid: method, payment terms in days, minimum payout.
invite?Send a portal invitation to this email. Without it the record is created silently: no email and no invitation. Applies only when the call creates the record.
Success
application/json- response
id*stringFormat
uuidexternalId*string|nullcode*stringname*stringkind*stringstatus*stringcompanyName*string|nullcontactName*string|nullcontactEmail*string|nullcontactPhone*string|nullmodules*payout*version*stringcreatedAt*stringupdatedAt*stringcurl -X POST 'https://api.traki.io/v1/account/publishers' \ -H "Authorization: Bearer $TRAKI_KEY" \ -H 'Content-Type: application/json' \ -H 'Idempotency-Key: a-unique-id-for-this-change' \ -d '{ "name": "string"}'Example Response
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "externalId": "string", "code": "string", "name": "string", "kind": "string", "status": "string", "companyName": "string", "contactName": "string", "contactEmail": "string", "contactPhone": "string", "modules": { "calls": true, "leads": true }, "payout": { "method": "string", "termsDays": -9007199254740991, "minimum": "string" }, "version": "string", "createdAt": "string", "updatedAt": "string"}