Get a post by externalId
Find a post by your own system's ID with GET /posts/external/{externalId}.
Finds a post by its ID in your own system (externalId). Use this when you haven't stored the Weekerp post ID.
Request
| Item | Value |
|---|---|
| Method · path | GET /posts/external/{externalId}?lang={lang} |
| Permission | Read only (read) or higher |
Parameters
| Name | Required | Description |
|---|---|---|
externalId (path) |
Required | The ID you set when creating the post |
lang (query) |
Required | Language. IDs are separate for each language, so this is required |
Example
curl "https://api-open.weekerp.com/blog/v1/posts/external/prod-123?lang=en" \
-H "Authorization: Bearer wk_live_xxxxxxxx"
Response
You get 200 with the full post. Use the id in the response to publish or delete it.
Common errors
| HTTP | code | Fix |
|---|---|---|
| 404 | post_not_found |
No post with that ID exists in that language. Check lang |
| 400 | invalid_request |
Add the lang query |
| 400 | post_external_id_invalid |
The ID format is wrong |
| 401 | api_key_invalid |
The key is missing, wrong, or revoked. Check your key |
For the full list of errors, see Error format in Publish posts with the blog API.