Buttondown Documentation
Clients should authenticate by passing the token key in the Authorization
HTTP header, prepended with the string Token
(note the trailing space!).
For example, if your token was 401f7ac837da42b97f613d789819ff93537bee6a
, your headers may look like this.
You can find your API key at the top of your API requests page.
If you're using the API to manage multiple newsletters, you can pass the Buttondown-Context
header to specify the newsletter you want to access.
Consider the following example, in which a single platform account manages multiple newsletters. Each newsletter has its own API key in addition to the platform account's API key:
The platform could programmatically access each newsletter's API key and pass it through, but this is clumsy and onerous. Instead, you can pass the Buttondown-Context
header to specify the newsletter you want to access: