TrueVault Identity Manager

Delete an identity request

DELETE /identity/request/{access_request_code}/{identity_session_code}

Delete an identity request.

This endpoint is useful for cancelling an identity request.

You may wish to do this if the request is no longer needed, or if you would like to re-issue a request to the same person.

Parameters

NameInRequiredDescription
X-Correlation-Id header no

Unique identifier for tracking the request through the system

Example: req-64b4a7e123456

Authorization header yes

Access key generated from the auth API

Example: Bearer 048c2a1c-0881-4dcc-bfca-ccccccccc51

X-Tenant-Id header yes

The tenant ID for the request

Example: 048c2a1c-0881-4dcc-bfca-ccccccccc51

X-Request-Timestamp header yes

The timestamp for the request

Example: 1754261500

access_request_code path yes
identity_session_code path yes

Responses

StatusDescription
200 OK

Request deleted successfully

400 Bad Request

Validation error

401 Unauthorized

Authentication failed or invalid token

403 Forbidden

Unauthorized or insufficient permissions

404 Not Found

Validation error

429 Too Many Requests

Too many requests

500 Internal Server Error

Internal server error

Content type application/json

Response fields (200)

FieldTypeRequiredDescription
data object yes
data.message string no
correlation_id string yes
meta object no

Optional metadata about the response

Example 200 response

{
  "correlation_id": "req-64b4a7e123456",
  "data": {
    "message": "string"
  }
}

Content type application/json

ErrorResponse (400, 404)

FieldTypeRequiredDescription
error object yes

Every error carries a machine-readable type and a code. Match on one of these rather than on the message, which is written for people and may change.

CodeTypeHTTP
E1001VALIDATION_ERROR400
E1002INVALID_REQUEST400
E1003AUTHENTICATION_FAILED401
E1004UNAUTHORIZED403
E1005NOT_FOUND404
E1006CONFLICT409
E1007RATE_LIMIT_EXCEEDED429
E1008PRECONDITION_FAILED412
E1009CREDENTIAL_EXPIRED412
E1010CREDENTIAL_REVOKED412
E1011CREDENTIAL_PENDING_ACCEPTANCE412
E1012CREDENTIAL_VERIFICATION_FAILED412
E2001INTERNAL_ERROR500
E2002INTERNAL_ERROR_EMAIL500
E2003DATABASE_ERROR500
E2004EXTERNAL_SERVICE_ERROR502
E2005SERVICE_UNAVAILABLE503
error.message string yes

Human readable error message

error.type string yes

Error type identifier

One of: VALIDATION_ERROR, INVALID_REQUEST, AUTHENTICATION_FAILED, UNAUTHORIZED, NOT_FOUND, CONFLICT, RATE_LIMIT_EXCEEDED, PRECONDITION_FAILED, CREDENTIAL_EXPIRED, CREDENTIAL_REVOKED, CREDENTIAL_PENDING_ACCEPTANCE, CREDENTIAL_VERIFICATION_FAILED, INTERNAL_ERROR, INTERNAL_ERROR_EMAIL, DATABASE_ERROR, EXTERNAL_SERVICE_ERROR, SERVICE_UNAVAILABLE

error.code string yes

Machine-readable error code

One of: E1001, E1002, E1003, E1004, E1005, E1006, E1007, E1008, E1009, E1010, E1011, E1012, E2001, E2002, E2003, E2004, E2005

error.timestamp string yes
error.correlation_id string yes
error.details object no

Additional error context

Example 400 response

{
  "error": {
    "message": "string",
    "type": "VALIDATION_ERROR",
    "code": "E1001",
    "timestamp": "2026-02-20T03:14:15Z",
    "correlation_id": "string"
  }
}

Content type application/json

Response fields (401)

FieldTypeRequiredDescription
error object yes

Example 401 response

{
  "error": {
    "type": "AUTHENTICATION_FAILED",
    "code": "E1003"
  }
}

Content type application/json

Response fields (403)

FieldTypeRequiredDescription
error object yes

Example 403 response

{
  "error": {
    "type": "UNAUTHORIZED",
    "code": "E1004"
  }
}

Content type application/json

Response fields (429)

FieldTypeRequiredDescription
error object yes

Example 429 response

{
  "error": {
    "type": "RATE_LIMIT_EXCEEDED",
    "code": "E1007"
  }
}

Content type application/json

Response fields (500)

FieldTypeRequiredDescription
error object yes

Example 500 response

{
  "error": {
    "type": "INTERNAL_ERROR",
    "code": "E2001"
  }
}

Example request

curl --request DELETE \
  --url https://api.sandbox.truevault.com.au/api/v1/identity/request/{access_request_code}/{identity_session_code} \
  --header 'X-Correlation-Id: <value>' \
  --header 'Authorization: <value>' \
  --header 'X-Tenant-Id: <value>' \
  --header 'X-Request-Timestamp: <value>'