List categories

Get your blog's categories with GET /categories. Use the codes in a post's categories.

Gets your blog's category list. Use the code from this list in a post's categories.

 

Request

Item Value
Method · path GET /categories
Permission Read only (read) or higher

 

Request fields

None.

 

Example

curl https://api-open.weekerp.com/blog/v1/categories \
  -H "Authorization: Bearer wk_live_xxxxxxxx"

 

Response

[
  { "code": "engineering", "name": "엔지니어링", "translations": { "en": "Engineering" } }
]

You create and edit categories in the blog dashboard. See Create categories.

 

Common errors

HTTP code Fix
401 api_key_invalid The key is missing, wrong, or revoked. Check your key
429 rate_limited Wait for the Retry-After seconds, then send the same request again

For the full list of errors, see Error format in Publish posts with the blog API.

 

Next steps