Skip to main content
POST
Archive a pixel
Same as Archive in Tools -> Pixels. The pixel stops sending and is detached from every campaign it was on. The message of the answer says how many campaigns it left.

What stays

  • The pixel is kept and shows in the pixel list with status=archived.
  • Past sends stay in Tools -> Postback Logs.
  • Custom postbacks and other pixels of the campaigns are not touched.
To take a pixel off one campaign only, use detach instead.

Bringing it back

An archived pixel is restored in Tools -> Pixels. Its campaigns are not attached again by themselves: attach the pixel to each of them after the restore, in the cabinet or with attach.

Errors

Authorizations

Authorization
string
header
required

API key from the partner cabinet, Tools -> API (https://partners.onlytraffic.com/tools/api): up to 5 named keys per account, each Full or Read-only, ot_partners_ prefix, shown once at creation. Raw value or Bearer form. Read-only keys cannot call the POST endpoints (403 This API key is read-only); expired or revoked keys get 403 Error! Access denied.

Body

application/json
pixel_id
string<uuid>
required

Pixel id in OnlyTraffic: pixel_id from the pixel list. Not the Pixel ID of the ad platform.

Response

200 - application/json

Success (check status; errors are also HTTP 200)

status
enum<string>
Available options:
success
message
string
data
object

One of your ad-platform pixels.