Skip to main content
PATCH
/
v1
/
posts
/
{id}
/
regenerate-tags
Regenerate post tags
curl --request PATCH \
  --url https://api.yalg.ai/v1/posts/{id}/regenerate-tags \
  --header 'x-api-key: <api-key>'
{
  "id": "018f9f40-7d7b-7712-9b0f-2e5d9fd5df3f",
  "anecdoteId": "018f9f41-22a1-74bb-9450-7dd0d21ab8ab",
  "content": "I used to think consistency came from discipline. It actually came from removing friction.",
  "platform": "linkedin",
  "status": "draft",
  "likes": 12,
  "comments": 3,
  "shares": 1,
  "createdAt": "2026-06-20T17:24:39.000Z",
  "updatedAt": "2026-06-20T17:24:39.000Z"
}

Authorizations

x-api-key
string
header
default:yalg_live_your_api_key
required

YALG Developer API key. Send it in the x-api-key header from a server-side environment only.

Path Parameters

id
string
required

UUID of the post

Example:

"123e4567-e89b-12d3-a456-426614174000"

Response

Tags regenerated successfully

Social post managed by YALG.

id
string<uuid>

Post identifier.

Example:

"018f9f40-7d7b-7712-9b0f-2e5d9fd5df3f"

anecdoteId
string<uuid>

Source anecdote identifier.

Example:

"018f9f40-7d7b-7712-9b0f-2e5d9fd5df3f"

content
string
Example:

"A publishable LinkedIn post generated from an anecdote."

platform
string
Example:

"linkedin"

status
string
Example:

"draft"

scheduledAt
string<date-time>
Example:

"2026-06-20T17:24:39.000Z"

publishedAt
string<date-time>
Example:

"2026-06-20T17:24:39.000Z"

likes
integer
Example:

12

comments
integer
Example:

3

shares
integer
Example:

1

createdAt
string<date-time>
Example:

"2026-06-20T17:24:39.000Z"

updatedAt
string<date-time>
Example:

"2026-06-20T17:24:39.000Z"