Report what happened on X
postkey_x_record_actionPostkey: Records the outcome of an X action or attempt that postkey_x_check_before_send allowed: whether it worked, with the X post or message id on success. On failure give the error class: rate_limited, forbidden or suspended pause every X action for this profile until a person resumes it in Postkey; not_allowed (this one person does not take DMs) puts them on the STOP list; other changes nothing else. Postkey cannot see X, so it knows only the outcomes recorded here, failed attempts included; a cancelled attempt is recorded as outcome failed with error class other. Refused unknown_event when there is no check for the grant or event. Sends nothing to X and no X send tool exists: act with the customer's own X access (full scope: postkey_x_status).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | The same kind you checked. | |
| outcome | Yes | "ok": X accepted it. "failed": it did not go out, or you cancelled it. | |
| event_id | No | For replies: the inbound event id you checked. | |
| grant_id | No | The grant_id from the allow answer. Needed for a post; for replies event_id works too. | |
| result_id | No | On success: the id of the X post or message that was created. Postkey keeps only a hash. | |
| error_class | No | With outcome failed: what kind of error X gave (see above for what each one does). When unsure, use other. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | false: refused (isError; code, message, guide_topic, url); no change. | |
| note | No | Present when the grant had run out. | |
| paused | No | true: X actions are now paused for this profile. | |
| message | No | What happened. | |
| recorded | No | true: the outcome is in the ledger. | |
| usage_note | No | Near the month's X allowance: pass on as it is. |