Create an offer
Creates an offer as a `draft`. Set `status` to `active` with [Update an offer](/api/offers/updateOffer) to start it. `publicationId` in the body must equal `pub_id` in the URL. Requires a **Full access** key.
bearerAuth Create a key in Letterby under Settings, Integrations,
Create key. Send it as Authorization: Bearer lb_....
A key is either Read only (every GET) or Full access.
In: header
The id of one of your publications.
uuidA unique string for this action, for example a UUID. Retrying with the same key and body within 24 hours returns the first response instead of running the action again.
^[\w.-]{1,255}$application/json
TypeScript Definitions
Use the request body type in TypeScript.
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/publications/497f6eca-6276-4993-bfeb-53cbbbba6f08/offers" \ -H "Content-Type: application/json" \ -d '{ "publicationId": "019a8a52-6f3e-7c1a-9d52-3b1f6f0c2a11", "name": "The Weekly Byte", "description": "Five minutes of tech news every Friday.", "payoutCents": 250, "currency": "usd", "budgetCents": 500000, "monthlyBudgetCents": 100000, "landingUrl": "https://weeklybyte.example/subscribe", "targetCountries": [ "US", "GB", "CA" ] }'{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "created_at": "2019-08-24T14:15:22Z"}Must equal pub_id in the URL.
uuid1 <= length <= 2551 <= length <= 256100 <= value <= 100000Value in
10000 <= value <= 10000000010000 <= value <= 100000000Budget per day. Must cover at least one payout.
0 <= valueWhere subscribers are sent. https and a public host only.
urilength <= 512urilength <= 512^#[0-9a-fA-F]{6}([0-9a-fA-F]{2})?$^[a-zA-Z0-9_-]+$1 <= length <= 32items <= 50"keep_no_pay"Value in