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
| Name | In | Required | Description |
|---|---|---|---|
X-Correlation-Id |
header | no | Unique identifier for tracking the request through the system Example: |
Authorization |
header | yes | Access key generated from the auth API Example: |
X-Tenant-Id |
header | yes | The tenant ID for the request Example: |
X-Request-Timestamp |
header | yes | The timestamp for the request Example: |
access_request_code |
path | yes | |
identity_session_code |
path | yes |
Responses
| Status | Description |
|---|---|
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)
| Field | Type | Required | Description |
|---|---|---|---|
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)
| Field | Type | Required | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
error |
object | yes | Every error carries a machine-readable
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||
error.message |
string | yes | Human readable error message |
||||||||||||||||||||||||||||||||||||||||||||||||||||||
error.type |
string | yes | Error type identifier One of: |
||||||||||||||||||||||||||||||||||||||||||||||||||||||
error.code |
string | yes | Machine-readable error code One of: |
||||||||||||||||||||||||||||||||||||||||||||||||||||||
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)
| Field | Type | Required | Description |
|---|---|---|---|
error |
object | yes |
Example 401 response
{
"error": {
"type": "AUTHENTICATION_FAILED",
"code": "E1003"
}
}Content type application/json
Response fields (403)
| Field | Type | Required | Description |
|---|---|---|---|
error |
object | yes |
Example 403 response
{
"error": {
"type": "UNAUTHORIZED",
"code": "E1004"
}
}Content type application/json
Response fields (429)
| Field | Type | Required | Description |
|---|---|---|---|
error |
object | yes |
Example 429 response
{
"error": {
"type": "RATE_LIMIT_EXCEEDED",
"code": "E1007"
}
}Content type application/json
Response fields (500)
| Field | Type | Required | Description |
|---|---|---|---|
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>'