Save the created passkey (credential id, public key, counter, transports and name)
POST
/v1/me/passkeys
const url = 'https://api.replifier.com/v1/me/passkeys';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"response":{"id":"example","rawId":"example","type":"public-key","response":{"additionalProperty":"example"},"clientExtensionResults":{"additionalProperty":"example"},"authenticatorAttachment":"example"},"name":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.replifier.com/v1/me/passkeys \ --header 'Content-Type: application/json' \ --data '{ "response": { "id": "example", "rawId": "example", "type": "public-key", "response": { "additionalProperty": "example" }, "clientExtensionResults": { "additionalProperty": "example" }, "authenticatorAttachment": "example" }, "name": "example" }'Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
response
required
object
id
required
string
rawId
required
string
type
required
string
response
required
object
key
additional properties
clientExtensionResults
object
key
additional properties
authenticatorAttachment
string
name
string
Responses
Section titled “Responses”Passkey created
Media typeapplication/json
object
id
required
string
name
required
string
transports
required
Array<string>
createdAt
required
string
lastUsedAt
required
string
Example generated
{ "id": "example", "name": "example", "transports": [ "example" ], "createdAt": "example", "lastUsedAt": "example"}Invalid data
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}No session, expired session, or invalid, expired or revoked API key
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Not allowed, API key missing the scope, IP not allowed, or request rejected (csrf_rejected)
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}Internal error
Media typeapplication/json
object
error
required
object
code
required
string
message
required
string
cause
required
string
fix
required
string
requestId
required
string
Example
{ "error": { "code": "not_found" }}