Docs
Approvals

Change an item in words

POSThttps://api.norreach.app/v1/approvals/{key}/redraft

Nora rewrites a waiting message or card from a short instruction (“shorter”, “mention the site survey”). Nothing is sent — the item keeps waiting with the new words.

⚠ approvals:decideRole must allow: approvals.decideOperation id: redraft_approval
POST/approvals/{key}/redraft
curl -X POST "https://api.norreach.app/v1/approvals/{key}/redraft" \
  -H "Authorization: Bearer $NORREACH_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "instruction": "Shorter, and mention the site survey."
}'
Change an item in words
{
  "object": "redraft",
  "key": "plan_card:5b6c7d8e-9f0a-4b1c-8d2e-3f4a5b6c7d8e",
  "before": {
    "kind": "email",
    "to": "Anna Lindqvist",
    "subject": "Nurses for the summer",
    "body": "Hi Anna, …"
  },
  "preview": {
    "kind": "email",
    "to": "Anna Lindqvist",
    "subject": "Nurses for the summer",
    "body": "Hi Anna — short version …"
  }
}

Authorizations

Authorizationstringheaderrequired

Bearer authentication: send Authorization: Bearer <key>, with an API key or an OAuth access token. The key needs the scope approvals:decide. API keys and scopes

Path parameters

keystringpathrequired

An approval key, e.g. plan_card:<uuid>, meeting:<uuid>, rule_send:<uuid> (URL-encode the colon in paths).

Headers

Idempotency-Keystringheader

Any unique string (≤ 255). The same key with the same request returns the first answer for 24 hours.

Body

application/json

instructionstringrequired

Response

200application/json— Change an item in words

object"redraft"required
keystringrequired

An approval key, e.g. plan_card:<uuid>, meeting:<uuid>, rule_send:<uuid> (URL-encode the colon in paths).

beforeobjectrequired
Show child attributes
before.kindstringrequired
previewobjectrequired
Show child attributes
preview.kindstringrequired

Errors

Errors are application/problem+json with a stable code.

StatusCodeMeaning
400bad_requestThe request couldn't be read.
400unknown_fieldThe request has a field this operation doesn't know.
401unauthorizedA valid API key is required.
403insufficient_scopeThis API key doesn't have the scope this operation needs.
403feature_not_enabledThe API isn't switched on for this workspace.
403role_forbiddenThe key's creator's role can't do this.
404not_foundThat doesn't exist.
409idempotency_in_progressA request with this Idempotency-Key is still running.
413too_largeThe request body is too large.
422validation_failedThe request has invalid fields.
422idempotency_mismatchThis Idempotency-Key was used with a different request.
429rate_limitedToo many requests. Slow down and try again.
500server_errorSomething went wrong on our side.
503unavailableThe API isn't available right now. Try again shortly.