Sign-in · renamePasskey
Rename a passkey
POST /api/auth/passkeys/{id}/rename
One line, at most 64 characters.
- Who may call it
- Anyone (no credentials)
- Server
- https://api.logu.dev
Parameters#
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | required | The passkey's or session's id. · e.g. Xq3bY7tLmN2pR8sV |
Request body#
Content type application/json (required).
| Field | Type | Required | Notes |
|---|---|---|---|
name | string | required |
{
"name": "Work Mac"
}
Example#
curl -s -X POST "https://api.logu.dev/api/auth/passkeys/Xq3bY7tLmN2pR8sV/rename" \
-H "Authorization: Bearer $LOGU_SESSION_TOKEN" \
-H "Content-Type: application/json" \
-d '{"name":"Work Mac"}'
Responses#
200
The passkey.
{
"id": "pk_9f2c1e",
"name": "Chrome · macOS",
"provider": "Google Password Manager",
"backedUp": true,
"createdAt": "2026-10-12T14:03:11.000Z"
}
Response fields
| Field | Type | Required | Notes |
|---|---|---|---|
id | string | required | |
name | string | null | required | |
provider | string | null | required | |
backedUp | boolean | required | |
createdAt | string | null | required |
Errors#
Every error is {"error":{"code","message","hint","docUrl","requestId"}}: branch on code. See Errors.
| Status | Code | Meaning |
|---|---|---|
| 400 | unknown_field | The body has a field the endpoint doesn't know (often a typo or snake_case). |
| 400 | bad_request | The request is malformed or a field is invalid (see issues). |
| 401 | unauthorized | No credentials, or the API key or session is invalid or revoked. |
| 404 | not_found | No such route, or the resource doesn't exist in your workspace. |
| 500 | internal_error | Something went wrong on Logu's side. |