SwiftGoma.SwiftGoma

Search endpoints

Jump to any API endpoint by name, method, or path

Passkeys

Get passkey registration options

POST/api/v1/auth/passkey/register/options

Generates a WebAuthn attestation challenge to register a new passkey on the signed-in account.

Requires Authorization
Authenticated action
Request
curl --request POST \
  --url https://api.swiftgoma.com/api/v1/auth/passkey/register/options \
  --header 'Authorization: Bearer <access_token>'
200Example response
{
  "success": true,
  "data": {
    "challenge": "base64url-challenge",
    "rp": {
      "name": "SwiftGoma",
      "id": "swiftgoma.com"
    },
    "user": {
      "id": "3f2a1c9e",
      "name": "aline@example.com"
    }
  }
}