--- title: "Delete session" slug: "v1sessionsid-3" description: "Request session deletion with Veriff's API. Learn about session states, rate limits, and authentication for effective integration management." updated: 2026-04-24T06:12:25Z published: 2026-04-24T06:12:25Z canonical: "devdocs.veriff.com/v1sessionsid-3" --- > ## Documentation Index > Fetch the complete documentation index at: https://devdocs.veriff.com/llms.txt > Use this file to discover all available pages before exploring further. # Delete session Delete/v1/sessions/{id} ### Requests the deletion of a session #### When to use this endpoint - Use this endpoint when you need to delete a session, for example you used the session to test your integration - The endpoint is not available by default, contact your Solutions Engineer or Veriff Customer Support to enable it for your integration #### Session deletion logic - Sessions can only be deleted when they are in one of the following states: - `created`: session has been created - `started`: the end-user has entered the session flow - `approved`: verification was successful - `declined`: verification was declined due to some reason - `resubmission_requested`: additional attempt needed - `expired`: session expired before completion - `abandoned`: session started but never completed - Attempting to delete the session in other statuses will respond with the `Session is not in a completed status.` error message - If session status is one of `created`, `started` or `resubmission_requested`, a decision webhook with `expired/abandoned` status will be sent - After successful request, session will immediately become unavailable in Veriff Customer Portal and via public API endpoints. Data will be deleted within 12 hours #### Rate limiting - This endpoint is rate limited: 10 sessions per 24 hours and 5 sessions per 1 hour #### Implementation notes - This endpoint is not available by default, contact your Solutions Engineer or Veriff Customer Support to enable it for your integration - This endpoint requires session-level [HMAC signature](https://devdocs.veriff.com/docs/hmac-authentication-and-endpoint-security#public-api-v1) authentication - Always ensure that you use the correct API URL to send requests. See the [API URL section](https://devdocs.veriff.com/apidocs/veriff-public-api-guides#api-url) for more info. - The order of parameters in the real API response can differ from the order you see in this documentation. This is expected and part of the [Backwards compatible changes](https://devdocs.veriff.com/apidocs/veriff-public-api-guides#backwards-compatible-changes) requirements. Header parametersX-AUTH-CLIENTstringRequired Your integration's API key (occasionally referred to as the "Token", "API public key" or "Publishable key"). Required for all API requests. You can find your API key in the Veriff Customer Portal > Settings > API keys. Exampleyour_api_key X-HMAC-SIGNATUREstringRequired Session ID signed with the shared secret key. Required to authenticate the request sender. Examplegenerated_hmac_signature_value Path parametersidstring (uuid) Required Verification session ID. Example123e4567-e89b-12d3-a456-426614174000 Responses200 Session successfully deleted. HeadersContent-TypestringResponse content type.Exampleapplication/json X-AUTH-CLIENTstringAPI key echoed back in response.Exampleyour_api_key X-HMAC-SIGNATUREstringResponse body signed with the shared secret key. Required to authenticate the response sender.Examplegenerated_hmac_signature_value successful_deletion Session and all associated data permanently deleted. ```json { "status": "success", "verification": { "id": "123e4567-e89b-12d3-a456-426614174000" } } ``` Expand Allobject Confirmation response after successful session deletion. statusstring API request status Examplesuccess verificationobject Verification object containing deleted session ID. idstring (uuid) UUID v4 which identifies the verification session that was deleted. Example123e4567-e89b-12d3-a456-426614174000 400 Bad request - session cannot be deleted HeadersContent-TypestringResponse content type.Exampleapplication/json session_not_completed Session must be in a completed state (`approved`, `declined`, `expired`, `abandoned`) before deletion ```json { "status": "fail", "code": "1305", "message": "Session is not in a completed status." } ``` session_in_progress Cannot delete session while end-user is actively completing verification ```json { "status": "fail", "code": "1306", "message": "Session in progress." } ``` OneOfDeleteSessionNotCompletedBadRequestErrorResponseobject (DeleteSessionNotCompletedBadRequestErrorResponse)statusstring API request status. Valid values[ "fail" ]Examplefail codestring Veriff-specific error code for session not completed. Example1305 messagestring Error message explaining the session must be in a final state before deletion. ExampleSession is not in a completed status. DeleteSessionInProgressBadRequestErrorResponseobject (DeleteSessionInProgressBadRequestErrorResponse)statusstring API request status. Valid values[ "fail" ]Examplefail codestring Veriff-specific error code for session in progress. Example1306 messagestring Error message indicating session is currently being completed by end-user. ExampleSession in progress. 401 Unauthorized - authentication failed HeadersContent-TypestringResponse content type.Exampleapplication/json missing_api_key ```json { "status": "fail", "code": "1101", "message": "Mandatory X-AUTH-CLIENT header containing the API key is missing from the request." } ``` invalid_hmac Invalid HMAC signature ```json { "status": "fail", "code": "1812", "message": "Signature verification failed." } ``` object statusstring Valid values[ "fail" ]Examplefail codestring Example1101 messagestring ExampleMandatory X-AUTH-CLIENT header containing the API key is missing from the request. 404 Session not found HeadersContent-TypestringResponse content type.Exampleapplication/json X-AUTH-CLIENTstringAPI key echoed back in response.Exampleyour_api_key X-HMAC-SIGNATUREstringResponse body signed with the shared secret key. Required to authenticate the response sender.Examplegenerated_hmac_signature_value session_not_found No session found with the provided ID or session was already deleted ```json { "status": "fail", "code": "1101", "message": "Resource not found" } ``` object statusstring Valid values[ "fail" ]Examplefail codestring Example1101 messagestring ExampleResource not found 429 Too many requests - rate limit exceeded HeadersContent-TypestringResponse content type.Exampleapplication/json X-AUTH-CLIENTstringAPI key echoed back in response.Exampleyour_api_key X-HMAC-SIGNATUREstringResponse body signed with the shared secret key. Required to authenticate the response sender.Examplegenerated_hmac_signature_value rate_limit_exceeded Too many deletion requests sent in a short period ```json { "status": "fail", "code": "1004", "message": "Too many requests." } ``` object statusstring Valid values[ "fail" ]Examplefail codestring Example1004 messagestring ExampleToo many requests. 500 Internal server error HeadersContent-TypestringResponse content type.Exampleapplication/json X-AUTH-CLIENTstringAPI key echoed back in response.Exampleyour_api_key X-HMAC-SIGNATUREstringResponse body signed with the shared secret key. Required to authenticate the response sender.Examplegenerated_hmac_signature_value server_error ```json { "status": "fail", "code": "1101", "message": "Something went wrong" } ``` object statusstring Valid values[ "fail" ]Examplefail codestring Example1101 messagestring ExampleSomething went wrong