Code
Manage individual codes. Create, retrieve, delete, import in bulk, and publish existing codes for use in campaigns.
Codes are scoped to a list (/accounts/{accountUuid}/lists/{listUuid}/codes) and move through the statuses active, inactive, published, redeemed, or deleted. Besides creating a single code at a time, Import new codes accepts an array of code/sortNum pairs to load codes in bulk in one call, and Get list of codes supports filtering by code, a generic q search, and status, plus sorting by code or sortNum.
Publish existing codes (POST /accounts/{accountUuid}/lists/{listUuid}/publications) assigns already-created codes to a set of receivers: the request body is an array of receiverId values, and the response pairs each receiver with the code it was allocated, marking those codes as published so they can be delivered to end users through a campaign or messaging flow.