Report a message
Reports a message on behalf of the creator.
EVVA files it as the creator’s own report, with the creator as the reporter: the same record as a report the
creator makes themselves. When EVVA accepts it, the answer is 202 with report.
Access
The call needs write:reports, which a creator’s default consent does not include
(scopes and grants). The agency’s action policy then decides: the report is filed, or you
receive 202 APPROVAL_REQUIRED and nothing is reported. Re-send with Partner-Approval-Id once a person approves
(action approval). The approval covers the message and the reason, which comes from a closed list,
but not the free-text detail.
Required scopes: write:reports.
Approval: this operation runs through action approval for applications.
Authentication
OAuth 2.0 client credentials. Request an access token at POST /partner/v1/oauth/token (grant_type=client_credentials) with the application’s client secret or a private_key_jwt assertion, then send it as Authorization: Bearer evpa_live_… (or evpa_test_… for a sandbox application). Tokens are opaque and short lived (see expires_in); there is no refresh token. Each operation lists the scopes it requires.
write:reportsPath parameters
The creator profile id — the ONLY source of the creator a request acts for.
Headers
Optional echo of the path creatorId; any other value is refused with 403 CREATOR_CONTEXT_MISMATCH.
Your key for this request, required because the operation may need approval. Action approval claims an approval, or reserves the agency’s automatic budget, under this key; without it the request is 400 IDEMPOTENCY_KEY_REQUIRED before anything is asked, reserved or done.
- The same request re-sent with the same key, with its
Partner-Approval-Idor after an automatic pass, is that request again. It never has a second effect, also when copies arrive at the same time. - Where the operation stores its result under the key, you get that result again. Otherwise the answer is
409withdetails.replay: true:APPROVAL_CONSUMEDafter an approval,IDEMPOTENCY_KEY_REUSEDafter an automatic pass. Read the resource to see the result. - The same key for a different action is
409 IDEMPOTENCY_KEY_REUSED, withoutdetails.replay. - An approval already spent under another key is
409 APPROVAL_CONSUMED.
The key is scoped to your application. See action approval.
The approvalId a previous 202 APPROVAL_REQUIRED returned, for an operation your application may run only with approval. Re-send it with the same payload once a person has approved. A blank value is no approval.
The approval is spent once, for exactly that agency, application, creator, operation and payload digest, the same amount and currency, and at most the units it was given for. It is claimed for the request’s Idempotency-Key (required) and becomes final when the operation succeeds:
- A refusal before the effect, a
4xxor429, hands it back for your next attempt. - A
5xx,503included, keeps it claimed for this key, because the effect may have happened. It is handed back only when EVVA knows nothing was done. - The same key re-sent replays the request and never has a second effect. You get the stored result where the operation keeps one, otherwise
409 APPROVAL_CONSUMEDwithdetails.replay: true: read the resource to see the result. - Another key is
409 APPROVAL_CONSUMED.
When the approval cannot be used, the request is refused with 403 (APPROVAL_INVALID, APPROVAL_MISMATCH or APPROVAL_DECLINED) or 409 (APPROVAL_PENDING, APPROVAL_EXPIRED or APPROVAL_CONSUMED). See action approval.
Request
Response
The report was accepted; report.submitted is false when a replay of an earlier request was absorbed. For a
report that waits for a person, the body is APPROVAL_REQUIRED (ApprovalRequired) instead: nothing was
reported, so re-send with Partner-Approval-Id once approved.
The 202 body your application receives when an operation needs a person’s approval. Nothing was done.
Once the request is approved, re-send the same request with Partner-Approval-Id: <approvalId>; watch the event feed for approval.decided. The request expires 24 hours after it was made, by default. See action approval.
The request is idempotent by Idempotency-Key (1..128 of [A-Za-z0-9_-], in your application’s own key space). The same key and action return the same request; the same key for a different action is 409 IDEMPOTENCY_KEY_REUSED. Without a key, a live request for the same action is returned instead of a second one.
