API reference

Permissions

What each API key permission allows, where to turn it on, and which endpoints need it.

Every endpoint needs one permission (a scope such as emails:send), shown at the top of its page. When you create a key under Transactional → API keys, each area has three choices: No access, Read access (the area's :read permission) and Full access (all of the area's permissions). A request with a key that lacks the permission is refused with 403 insufficient_scope.

Give each key only what its job needs: a server that only sends receipts needs Transactional email → Full access (emails:send and emails:read) and nothing else.
API key permissions
PermissionOn the API key screenAllowsEndpoints
profiles:readProfiles → Read accessRead profiles.List profilesGet a profile
profiles:writeProfiles → Full accessCreate, update and delete profiles.Create or update a profileUpdate a profileDelete a profile
events:readEvents → Read accessRead events, and a profile's events.List a profile's eventsList events
events:writeEvents → Full accessRecord events (one, or up to 1,000 at once).Record an eventRecord up to 1,000 events
events:importImport past events → Full accessImport past events (stored as history: they never start flows).Import up to 1,000 past events
lists:readLists → Read accessRead lists and their members.List listsGet a listList a list's members
lists:writeLists → Full accessCreate, rename and delete lists; add and remove members.Create a listRename a listDelete a listAdd profiles to a listRemove profiles from a list
segments:readSegments → Read accessRead segments and their members.List segmentsGet a segmentList a segment's members
catalog:readCatalog → Read accessRead products.List productsGet a product with its variants
catalog:writeCatalog → Full accessCreate, update and delete products.Create or update productsDelete a product
orders:readOrders → Read accessRead orders.List ordersGet an order with its line items
orders:writeOrders → Full accessCreate and update orders.Create or update orders
campaigns:readCampaigns → Read accessRead campaigns and their numbers.Get a campaignList campaigns
campaigns:writeCampaigns → Full accessCreate, update, send, cancel and delete marketing campaigns.Create a campaignUpdate a draft campaignSend a campaignCancel a campaignDelete a draft campaign
metrics:readMetrics → Read accessRead the metrics (kinds of activity) of the account.List metricsGet a metric
emails:readTransactional email → Read accessRead the transactional emails you sent.Get an emailList sent emails
emails:sendTransactional email → Full accessSend, reschedule and cancel transactional email.Send an emailSend up to 100 emailsReschedule an emailCancel a scheduled email
templates:readTemplates → Read accessRead the transactional templates.List templatesGet a template