Skip to content

GET /api/v1/me/natural-person/id-verification

Retrieve identity-verification images for the authenticated user.

Endpoint

text
GET /api/v1/me/natural-person/id-verification

Compatibility alias:

text
GET /api/v1/me/natural-person/id_verification

Authentication

This endpoint accepts either:

  • an OAuth access token with the eprospera:person.id_verification.read scope, or
  • an Agent Key (ak-) with the agent:person.id_verification.read scope

Standard API keys (sk-) are not supported on this endpoint.

text
Authorization: Bearer <access-token-or-agent-key>

Accepted Scopes

Provide the scope that matches the token type you are using:

  • eprospera:person.id_verification.read
  • agent:person.id_verification.read

Example Request

bash
curl https://portal.eprospera.com/api/v1/me/natural-person/id-verification \
  -H "Authorization: Bearer <access-token-or-agent-key>"

Response

Success Response (200 OK)

FieldTypeDescription
idstring | nullVerification-session ID.
typestring | nullCurrently veriff when present.
datestring | nullSession creation timestamp.
statusstring | nullCurrently approved when present.
documentsobjectSigned document URLs.
documents.documentFrontstring | nullSigned URL for the front image.
documents.documentBackstring | nullSigned URL for the back image.
documents.facestring | nullSigned URL for the selfie image.

Example Response

json
{
  "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "type": "veriff",
  "date": "2024-01-15T10:30:00.000Z",
  "status": "approved",
  "documents": {
    "documentFront": "https://...",
    "documentBack": "https://...",
    "face": "https://..."
  }
}

No approved verification on file

json
{
  "id": null,
  "type": null,
  "date": null,
  "status": null,
  "documents": {
    "documentFront": null,
    "documentBack": null,
    "face": null
  }
}

Notes

  • The route returns the most recent approved identity-verification session.
  • Signed URLs expire after 1 hour.
  • Some ID types may not include documentBack.

Error Responses

401 Unauthorized

json
{
  "error": "missing_token"
}
json
{
  "error": "invalid_token"
}

403 Forbidden — Insufficient Scopes (OAuth token)

json
{
  "error": "missing_scopes: eprospera:person.id_verification.read"
}

403 Forbidden — Insufficient Scopes (Agent Key)

json
{
  "error": "Insufficient permissions"
}

500 Internal Server Error

json
{
  "error": "Internal server error"
}