A new pixel token, replacing the old one at once: your workspace's owner
POST
/v1/buyer/networks/{id}/credential/pixel-token
const url = 'https://example.com/v1/buyer/networks/example/credential/pixel-token';const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/v1/buyer/networks/example/credential/pixel-token \ --header 'Authorization: Bearer <token>'Who: a workspace’s owner. Not for API keys.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string
Header Parameters
Section titled “Header Parameters”Idempotency-Key
string
Made once per action and sent again on every retry of it, so the service acts once: the request_id of the create or money-moving call; a new one when left out
Responses
Section titled “Responses”OK
Media typeapplication/json
object
allowed_ips
required
Array<string>
created_at
required
string format: date-time
network_id
required
integer format: int64
pixel_rotated_at
required
string | null format: date-time
pixel_token
required
string
previous_valid_until
required
string | null format: date-time
rotated_at
required
string | null format: date-time
signature_required
required
boolean
signing_secret_last4
required
string
signing_secret_set
required
boolean
updated_at
required
string format: date-time
workspace_id
required
integer format: int64
Example generated
{ "allowed_ips": [ "example" ], "created_at": "2026-04-15T12:00:00Z", "network_id": 1, "pixel_rotated_at": "2026-04-15T12:00:00Z", "pixel_token": "example", "previous_valid_until": "2026-04-15T12:00:00Z", "rotated_at": "2026-04-15T12:00:00Z", "signature_required": true, "signing_secret_last4": "example", "signing_secret_set": true, "updated_at": "2026-04-15T12:00:00Z", "workspace_id": 1}default
Section titled “default”An error, as go-commons apperr maps it
Media typeapplication/json
object
error
required
object
code
required
string
fields
object
key
additional properties
string
message
required
string
Example generated
{ "error": { "code": "example", "fields": { "additionalProperty": "example" }, "message": "example" }}