auth

Embed
Preview of the card
<a href="https://lucidace.com/docs/ref-auth"><img src="https://lucidace.com/docs/_api/public/orgs/af34862a-c837-4478-8335-0505efe40459/spaces/da916cd3-c0fc-4b63-b971-b3c13623daf3/pages/8834a97f-36a0-4c36-939c-0fdb4d64a504/social-card.svg?v=3e7ae33eec8b" alt="auth" width="600" height="315"></a>
GEThttps://lucidace.com/v1/auth/social/{provider}/callback

Parameters

providerstringpathrequired
codestringquery
statestringqueryrequired

Code samples

cURL
curl -X GET "https://lucidace.com/v1/auth/social/{provider}/callback?state=<state>"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 Same body as POST /v1/auth/login
Example
{
  "created_at": "2024-01-01T00:00:00Z",
  "email": "string",
  "id": "string",
  "is_disabled": true,
  "name": "string"
}
User
created_atstringrequired
emailstringrequired
idstringrequired
is_disabledbooleanrequired
namestringrequired
{
  "created_at": "2024-01-01T00:00:00Z",
  "email": "string",
  "id": "string",
  "is_disabled": true,
  "name": "string"
}
Option 2
mfa_requiredbooleanrequired
mfa_tokenstringrequired
{
  "mfa_required": true,
  "mfa_token": "string"
}
Option 3
mfa_enrollment_requiredbooleanrequired
userobjectrequired
Show child parameters
created_atstringrequired
emailstringrequired
idstringrequired
is_disabledbooleanrequired
namestringrequired
{
  "mfa_enrollment_required": true,
  "user": {
    "created_at": "2024-01-01T00:00:00Z",
    "email": "string",
    "id": "string",
    "is_disabled": true,
    "name": "string"
  }
}
Option 4
confirmation_requiredbooleanrequired
{
  "confirmation_required": true
}
401
403 SSO-only domain
404
POSThttps://lucidace.com/v1/auth/social/{provider}/start

Parameters

providerstringpathrequired
google | gitlab | github

Code samples

cURL
curl -X POST "https://lucidace.com/v1/auth/social/{provider}/start"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200
Example
{
  "redirect_url": "string"
}
Schema
redirect_urlstringrequired
404 provider not configured
POSThttps://lucidace.com/v1/confirmations/claim

Claim a confirmation token for single use. 204 on the first claim, 409 on a replay.

Request body

application/json
signaturestringrequired
The confirmation token's signature part (the text after the dot); only its SHA-256 is stored.
{
  "signature": "string"
}

Code samples

cURL
curl -X POST "https://lucidace.com/v1/confirmations/claim" \
  -H "Content-Type: application/json" \
  -d '{"signature":"string"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

204
400
409 already used
GEThttps://lucidace.com/v1/me

The signed-in user and their orgs. A capture-only project key gets 404.

Code samples

cURL
curl -X GET "https://lucidace.com/v1/me"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200
Example
{
  "mfa_enabled": true,
  "orgs": [
    {
      "created_at": "2024-01-01T00:00:00Z",
      "id": "string",
      "ip_capture_default": true,
      "name": "string",
      "plan": "string",
      "slug": "string",
      "role": "string"
    }
  ],
  "passkey_count": 0,
  "user": {
    "created_at": "2024-01-01T00:00:00Z",
    "email": "string",
    "id": "string",
    "is_disabled": true,
    "name": "string"
  }
}
Schema
mfa_enabledbooleanrequired
Whether TOTP two-factor sign-in is enabled for this account.
orgsOrgWithRole[]required
Each org carries the caller's role.
Show child parameters
created_atstringrequired
idstringrequired
ip_capture_defaultbooleanrequired
ip_capture that new projects of this org start with (default off).
namestringrequired
planstringrequired
slugstringrequired
rolestringrequired
passkey_countintegerrequired
Registered passkeys (WebAuthn credentials).
userobjectrequired
Show child parameters
created_atstringrequired
emailstringrequired
idstringrequired
is_disabledbooleanrequired
namestringrequired
401
404 A capture-only project key
DELETEhttps://lucidace.com/v1/me

Request body

application/json

Optional; password is required for accounts that have one

confirm_emailstring
The account's email, typed again (case-insensitive); anything else is a 400.
delete_orgsboolean
Also delete every org the user solely owns (its data and audit trail go with it).
passwordstring
Current password; required unless the account has none (SSO-only).
{
  "confirm_email": "string",
  "delete_orgs": true,
  "password": "string"
}

Code samples

cURL
curl -X DELETE "https://lucidace.com/v1/me" \
  -H "Content-Type: application/json" \
  -d '{"confirm_email":"string","delete_orgs":true,"password":"string"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

204 Account deleted, every session revoked
400 confirm_email missing or not the account email
401 Wrong or missing password
409 Sole owner of an org (sole-owner) and delete_orgs not set; the detail names the orgs
POSThttps://lucidace.com/v1/me/email

Ask to change the address: mails a confirmation link to the new address.

Request body

application/json
new_emailstringrequired
passwordstring
Current password; ignored for accounts without one (SSO-only).
{
  "new_email": "string",
  "password": "string"
}

Code samples

cURL
curl -X POST "https://lucidace.com/v1/me/email" \
  -H "Content-Type: application/json" \
  -d '{"new_email":"string","password":"string"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

202 Confirmation mailed to the new address
400
401 Wrong password
409 Address already in use
429
POSThttps://lucidace.com/v1/me/password

Change the password; every other session of the account is signed out.

Request body

application/json
current_passwordstringrequired
new_passwordstringrequired
{
  "current_password": "string",
  "new_password": "string"
}

Code samples

cURL
curl -X POST "https://lucidace.com/v1/me/password" \
  -H "Content-Type: application/json" \
  -d '{"current_password":"string","new_password":"string"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

204
400 Weak password
401 Wrong current password
429
GEThttps://lucidace.com/v1/me/preferences

Code samples

cURL
curl -X GET "https://lucidace.com/v1/me/preferences"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200
Example
{
  "home_path": "string",
  "muted_notifications": [
    "string"
  ]
}
Schema
home_pathstring
App path opened after sign-in, e.g. /dashboards/…; absent means the default home.
muted_notificationsstring[]
Notification kinds the user muted: mention (in-app), mention_email.
PUThttps://lucidace.com/v1/me/preferences

Request body

application/json
home_pathstring
App path opened after sign-in, e.g. /dashboards/…; absent means the default home.
muted_notificationsstring[]
Notification kinds the user muted: mention (in-app), mention_email.
{
  "home_path": "string",
  "muted_notifications": [
    "string"
  ]
}

Code samples

cURL
curl -X PUT "https://lucidace.com/v1/me/preferences" \
  -H "Content-Type: application/json" \
  -d '{"home_path":"string","muted_notifications":["string"]}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

400
POSThttps://lucidace.com/v1/me/privacy-rights-link

Code samples

cURL
curl -X POST "https://lucidace.com/v1/me/privacy-rights-link"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200
Example
{
  "enabled": true,
  "expires_at": 0,
  "url": "string"
}
Schema
enabledbooleanrequired
False when this deployment has no Cookie Munch site (self-host).
expires_atinteger
Unix milliseconds after which the link no longer verifies.
urlstring
Single-use link to the hosted rights page, already verified as this account.
404 Not a signed-in user
502
PATCHhttps://lucidace.com/v1/me/profile

Request body

application/json
namestringrequired
{
  "name": "string"
}

Code samples

cURL
curl -X PATCH "https://lucidace.com/v1/me/profile" \
  -H "Content-Type: application/json" \
  -d '{"name":"string"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200
Example
{
  "created_at": "2024-01-01T00:00:00Z",
  "email": "string",
  "id": "string",
  "is_disabled": true,
  "name": "string"
}
Schema
created_atstringrequired
emailstringrequired
idstringrequired
is_disabledbooleanrequired
namestringrequired
400
POSThttps://lucidace.com/v1/unsubscribe

Mute a mail kind with the token from the email. Public (the token is the credential); 400 when the token is not one of ours.

Request body

application/json
tokenstringrequired
{
  "token": "string"
}

Code samples

cURL
curl -X POST "https://lucidace.com/v1/unsubscribe" \
  -H "Content-Type: application/json" \
  -d '{"token":"string"}'
TypeScript
Python
Go
PHP
Ruby
Java

Responses

204
400
Updated