auth
GET
https://lucidace.com /v1/auth/social/{provider}/callback Parameters
providerstringpathrequiredcodestringquerystatestringqueryrequiredCode 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_atstringrequiredemailstringrequiredidstringrequiredis_disabledbooleanrequirednamestringrequired{
"created_at": "2024-01-01T00:00:00Z",
"email": "string",
"id": "string",
"is_disabled": true,
"name": "string"
}Option 2
mfa_requiredbooleanrequiredmfa_tokenstringrequired{
"mfa_required": true,
"mfa_token": "string"
}Option 3
mfa_enrollment_requiredbooleanrequireduserobjectrequiredShow child parameters
created_atstringrequiredemailstringrequiredidstringrequiredis_disabledbooleanrequirednamestringrequired{
"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
POST
https://lucidace.com /v1/auth/social/{provider}/start Parameters
providerstringpathrequiredgoogle | 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_urlstringrequired404 provider not configured
POST
https://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
signaturestringrequiredThe 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
GET
https://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_enabledbooleanrequiredWhether TOTP two-factor sign-in is enabled for this account.
orgsOrgWithRole[]requiredEach org carries the caller's
role.Show child parameters
created_atstringrequiredidstringrequiredip_capture_defaultbooleanrequiredip_capture that new projects of this org start with (default off).namestringrequiredplanstringrequiredslugstringrequiredrolestringrequiredpasskey_countintegerrequiredRegistered passkeys (WebAuthn credentials).
userobjectrequiredShow child parameters
created_atstringrequiredemailstringrequiredidstringrequiredis_disabledbooleanrequirednamestringrequired401
404 A capture-only project key
DELETE
https://lucidace.com /v1/me Request body
application/json
Optional; password is required for accounts that have one
confirm_emailstringThe account's email, typed again (case-insensitive); anything else is a 400.
delete_orgsbooleanAlso delete every org the user solely owns (its data and audit trail go with it).
passwordstringCurrent 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 email401 Wrong or missing password
409 Sole owner of an org (
sole-owner) and delete_orgs not set; the detail names the orgsPOST
https://lucidace.com /v1/me/email Ask to change the address: mails a confirmation link to the new address.
Request body
application/json
new_emailstringrequiredpasswordstringCurrent 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
POST
https://lucidace.com /v1/me/password Change the password; every other session of the account is signed out.
Request body
application/json
current_passwordstringrequirednew_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
GET
https://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_pathstringApp 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.PUT
https://lucidace.com /v1/me/preferences Request body
application/json
home_pathstringApp 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
POST
https://lucidace.com /v1/me/privacy-rights-link Mint the signed-in user's 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
enabledbooleanrequiredFalse when this deployment has no Cookie Munch site (self-host).
expires_atintegerUnix milliseconds after which the link no longer verifies.
urlstringSingle-use link to the hosted rights page, already verified as this account.
404 Not a signed-in user
502
PATCH
https://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_atstringrequiredemailstringrequiredidstringrequiredis_disabledbooleanrequirednamestringrequired400
POST
https://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