Skip to main content
Verify a password-account email address and create a session
curl --request POST \
  --url https://api.acornops.dev/api/v1/auth/password/verify-email \
  --header 'Content-Type: application/json' \
  --header 'x-csrf-token: <x-csrf-token>' \
  --data '
{
  "token": "base64url-verification-token"
}
'
{
  "user": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "email": "jsmith@example.com",
    "displayName": "<string>",
    "emailVerified": true,
    "createdAt": "2023-11-07T05:31:56Z",
    "updatedAt": "2023-11-07T05:31:56Z"
  },
  "verificationRequired": true
}

Documentation Index

Fetch the complete documentation index at: https://docs.acornops.dev/llms.txt

Use this file to discover all available pages before exploring further.

Headers

x-csrf-token
string
required

CSRF token returned by /api/v1/auth/csrf and mirrored in the CSRF cookie.

Body

application/json
token
string
required
Example:

"base64url-verification-token"

Response

Email verified, session cookie set, and user returned with status=verified.

user
object
required
status
enum<string>
Available options:
authenticated,
verification_required
verificationRequired
boolean