Issue an API key
Issue a blog API key in the dashboard and choose its name, permission, default author, and limits.
To use the blog API, first issue a key in the blog dashboard. You can set a name, permission, default author, and limits for each key.
Issue a key
- In the sidebar, open API integration under Blog.
- Click New key.
- Fill in the fields below and click Issue.
| Field | Required | Description |
|---|---|---|
| Name | Required | A name that tells you what the key is for (e.g. AI automation, Store sync). Up to 100 characters |
| Permission | Required | One of Read only, Write only, or Full access |
| Default author | Optional | Posts are created under this author when a request doesn't name one |
| Advanced options > Limits | Optional | Requests per minute, new posts per day, uploads per day. Leave empty to use the defaults |
For what each permission allows, see Permissions in Publish posts with the blog API. For AI agents and outside automation, we recommend Write only.
Copy the key
When the key is issued, it is shown once and starts with wk_live_. Click Copy and store it somewhere safe right away. Once you close the window, you can't view the key again. If you lose a key, issue a new one and revoke the old one.
Check that the key works
Read the category list.
curl https://api-open.weekerp.com/blog/v1/categories \
-H "Authorization: Bearer wk_live_xxxxxxxx"
If you get 200 with a list of categories, you're ready.
Keep your key safe
- Store the key in your server's or automation tool's secret storage (environment variables, n8n Credentials, and so on). Don't put it in web page JavaScript or a public repository.
- Issue a separate key for each use. Then revoking one key doesn't affect the others.
- Give each key only the permission it needs.