Automate campaigns

Account-token management of automation campaigns and their upload file-header (column-mapping) configurations, called by account users.

Account-token management of automation campaigns and their upload file-header (column-mapping) configurations, called by account users. List automation campaigns lists the caller's automation campaigns (with their file_header); Create file headersGet sample file info create, read, update, delete a campaign's file-header config and fetch the associated S3 sample-file metadata. All scoped to the caller's person.company_id; file uploads go to S3..

Prerequisites

  • A bearer token in the Authorization header. Any endpoint that needs no token says so on its own page.
  • The id of each record the call targets. Every endpoint page lists the ids it needs.

Errors

StatusMeaning
401The bearer token is missing, expired or invalid
403The token is valid but the record sits outside your account
422The request failed validation — the response names the fields
500Unexpected server error

Individual endpoints may return more; each page lists its own.

Endpoints

MethodEndpointDescription
GETList automation campaignsPaginated list of the caller's automation campaigns (rs_campaigns.type = 'automation'), each including its file_header configuration (headers map, sample-file path, location identifier).
POSTCreate file headersCreate the file-header (column-mapping) configuration for an automation campaign and uploads the sample file to S3.
GETGet file headers (by campaign id)Get the file-header configuration(s) for a given automation campaign.
PUTUpdate file headersUpdate an existing file-header configuration.
DELETEDelete file headersDelete a file-header configuration and its associated sample file from S3.
GETGet sample file infoGet the S3 URL and metadata (name, size, mime type) for the sample file attached to a file-header configuration.