Skip to content
Sign in

Verify current email

POST/v1/access/email-change/current-proof

Verify the current owner mailbox before sending new-address proof.

Authorization

humanSession
__Secure-better-auth.session_token<token>

Native Better Auth session cookie, managed by the browser. Loopback HTTP uses the unprefixed cookie name.

In: cookie

Request body

application/json

Response body

application/json

application/json

application/json

curl -X POST 'https://api.agentworkplace.dev/v1/access/email-change/current-proof' \
  -H 'Content-Type: application/json' \
  -d '{
  "receiptProof": "stringstringstringstringstringstringstrings",
  "operationId": "3051932a-fdd2-48fa-b330-7e7d41535969",
  "generation": 1,
  "code": "string"
}'
{
  "operationId": "3051932a-fdd2-48fa-b330-7e7d41535969",
  "state": "awaiting_current",
  "generation": 1,
  "createdAt": "2019-08-24T14:15:22Z",
  "expiresAt": "2019-08-24T14:15:22Z",
  "receiptExpiresAt": "2019-08-24T14:15:22Z",
  "finishedAt": "2019-08-24T14:15:22Z"
}