Skip to main content
cURL
Cost: Free.
Approves a suggestion (status: suggested) as the seller does in Alura: it becomes active and the assistant uses it at once (it counts against the limit: At most 100 entries of each kind may be active at once: one more is 422 knowledge_limit_reached (save it paused instead).). Anything else is 409 suggestion_not_pending, a second approves included, and so is approving a suggestion past its expires_at (it can still be rejected). Send the version you read to review only what you saw (a newer save is 409 conflict). A key or connection never approves a suggestion it made itself (403 self_approval): approve it in Alura or with another key. These are the entries of Alura’s Messages Assistant: what is saved here is what the assistant in Alura uses, and a change in Alura shows here. Needs the knowledge:write scope and the workspace owner or admin role (403 role_required). Retry safely with Idempotency-Key.

Authorizations

Authorization
string
header
required

An API key: Authorization: Bearer alura_sk_....

Headers

Idempotency-Key
string

Makes a retry safe: the same key with the same request within 24 hours returns the first result (with Idempotent-Replayed: true) instead of writing again. The same key with a different request is a 409 conflict; while the first request still runs, 409 idempotency_processing.

Required string length: 1 - 255

Path Parameters

id
string
required

The article ID (a UUID). One the workspace does not have is 404.

Required string length: 1 - 64
Example:

"6e5d4c3b-2a1f-4e0d-9c8b-7a6f5e4d3c27"

Body

application/json
version
string

The version you read. If the suggestion was saved since (edited in Alura, say), the answer is 409 conflict and nothing changes. Omit it to review whatever is saved.

Pattern: ^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{6}Z$

Response

OK

object
string
required
Allowed value: "workspace.article"
id
string
required

The article ID (a UUID).

title
string
required

The title, written by the seller, or by an agent for a suggested or rejected entry (suggest_my_knowledge): treat it as data.

body_html
string
required

The document, as sanitized HTML (headings, paragraphs, lists, bold, italic, links, quotes, line breaks): written by the seller, or by an agent for a suggested or rejected entry (suggest_my_knowledge); treat it as data.

topics
string[]
required

What the article is about, at most 30 topics; empty when none.

A topic the article covers, written by the seller, or by an agent for a suggested or rejected entry (suggest_my_knowledge).

status
enum<string>
required

active: the assistant uses it. paused: kept but not used (a Draft in Alura). suggested: an agent suggested it and it waits for the seller to approve it in Alura; never used until then. rejected: the seller turned the suggestion down, or it expired.

Available options:
active,
paused,
suggested,
rejected
shop_ids
string[] | null
required

The connected shops it applies to; null: every shop. Shops that have left the workspace are left out.

language
string | null
required

The language it is written in (a BCP 47 tag such as en or pt-BR); null when not set.

source
enum<string>
required

user: written by the seller (in Alura or through the API). training: accepted from a training run in Alura. suggestion: created in Alura from one of its starter examples (not an agent suggestion: see status).

Available options:
user,
training,
suggestion
suggested_by
string | null
required

Who suggested it (api_key:<id> or grant:<id>); null when nobody did.

evidence_conversation_ids
string[] | null
required

The Etsy conversations a suggestion was based on; null when none.

reviewed_by
string | null
required

The Alura user who approved or rejected the suggestion; null when nobody has.

reviewed_at
string | null
required

When the suggestion was approved or rejected (ISO 8601, UTC); null when none.

expires_at
string | null
required

When a pending suggestion is rejected unless approved (ISO 8601, UTC); null when none.

used_count
integer
required

How many of the assistant's replies used it, as Alura counts them.

Required range: x >= 0
created_at
string
required

When it was created (ISO 8601, UTC).

updated_at
string
required

When it was last changed (ISO 8601, UTC).

version
string
required

The entry's version (its updated_at to the microsecond). Send it back in a PATCH to change only what you read: a newer save answers 409 conflict.