Gamma API
AuthenticationPasskeys

Delete a passkey

POST
/api/auth/passkey/delete-passkey

Delete a specific passkey

Authorization

session
cookiegamma.session_token<token>

The session cookie a sign-in sets. Over HTTPS its name carries the __Secure- prefix. Browsers send it on their own; other clients keep it from the sign-in response.

Request Body

application/json
  1. body
id*string

The ID of the passkey to delete. Eg: "some-passkey-id"

Response Body

Passkey deleted successfully

application/json
  1. response
status*boolean

Indicates whether the deletion was successful

Example Request
curl -X POST 'http://localhost:3000/api/auth/passkey/delete-passkey' \  -H 'Content-Type: application/json' \  -d '{  "id": "string"}'
Example Response
{  "status": true}