← Back to API Reference
/nonces
Tag: nonces
getTable for storing one-time tokens with enhanced security and audit features
Parameters
| Name | In | Type | Format | Required | Description |
|---|---|---|---|---|---|
id | query | string | — | — | — |
client_token | query | string | — | — | — |
nonce | query | string | — | — | — |
user_id | query | string | — | — | — |
purpose | query | string | — | — | — |
expires_at | query | string | — | — | — |
created_at | query | string | — | — | — |
used_at | query | string | — | — | — |
revoked | query | string | — | — | — |
revoked_reason | query | string | — | — | — |
verification_attempts | query | string | — | — | — |
last_verification_at | query | string | — | — | — |
last_verification_ip | query | string | — | — | — |
last_verification_user_agent | query | string | — | — | — |
metadata | query | string | — | — | — |
scopes | query | string | — | — | — |
select | query | string | — | — | Filtering Columns |
order | query | string | — | — | Ordering |
Range | header | string | — | — | Limiting and Pagination |
Range-Unit | header | string | — | — | Limiting and Pagination |
offset | query | string | — | — | Limiting and Pagination |
limit | query | string | — | — | Limiting and Pagination |
Prefer | header | string | — | — | Preference |
Example
bash
curl "https://szkofkgbqogzlbqtcrke.supabase.co/rest/v1/nonces?select=*&limit=10" \
-H "apikey: YOUR_API_KEY" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"Responses
200OK
206Partial Content
postTable for storing one-time tokens with enhanced security and audit features
Parameters
| Name | In | Type | Format | Required | Description |
|---|---|---|---|---|---|
nonces | body | object | — | — | nonces |
select | query | string | — | — | Filtering Columns |
Prefer | header | string | — | — | Preference |
Example
bash
curl -X POST "https://szkofkgbqogzlbqtcrke.supabase.co/rest/v1/nonces" \
-H "apikey: YOUR_API_KEY" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-H "Prefer: return=representation" \
-d '{
"client_token": "example",
"nonce": "example",
"purpose": "example",
"expires_at": "2026-01-01T00:00:00Z",
"revoked": true
}'Responses
201Created
patchTable for storing one-time tokens with enhanced security and audit features
Parameters
| Name | In | Type | Format | Required | Description |
|---|---|---|---|---|---|
id | query | string | — | — | — |
client_token | query | string | — | — | — |
nonce | query | string | — | — | — |
user_id | query | string | — | — | — |
purpose | query | string | — | — | — |
expires_at | query | string | — | — | — |
created_at | query | string | — | — | — |
used_at | query | string | — | — | — |
revoked | query | string | — | — | — |
revoked_reason | query | string | — | — | — |
verification_attempts | query | string | — | — | — |
last_verification_at | query | string | — | — | — |
last_verification_ip | query | string | — | — | — |
last_verification_user_agent | query | string | — | — | — |
metadata | query | string | — | — | — |
scopes | query | string | — | — | — |
nonces | body | object | — | — | nonces |
Prefer | header | string | — | — | Preference |
Example
bash
curl -X PATCH "https://szkofkgbqogzlbqtcrke.supabase.co/rest/v1/nonces?id=eq.YOUR_ID" \
-H "apikey: YOUR_API_KEY" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-H "Prefer: return=representation" \
-d '{"client_token": "example"}'Responses
204No Content
deleteTable for storing one-time tokens with enhanced security and audit features
Parameters
| Name | In | Type | Format | Required | Description |
|---|---|---|---|---|---|
id | query | string | — | — | — |
client_token | query | string | — | — | — |
nonce | query | string | — | — | — |
user_id | query | string | — | — | — |
purpose | query | string | — | — | — |
expires_at | query | string | — | — | — |
created_at | query | string | — | — | — |
used_at | query | string | — | — | — |
revoked | query | string | — | — | — |
revoked_reason | query | string | — | — | — |
verification_attempts | query | string | — | — | — |
last_verification_at | query | string | — | — | — |
last_verification_ip | query | string | — | — | — |
last_verification_user_agent | query | string | — | — | — |
metadata | query | string | — | — | — |
scopes | query | string | — | — | — |
Prefer | header | string | — | — | Preference |
Example
bash
curl -X DELETE "https://szkofkgbqogzlbqtcrke.supabase.co/rest/v1/nonces?id=eq.YOUR_ID" \
-H "apikey: YOUR_API_KEY" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN"Responses
204No Content
Schema
Table for storing one-time tokens with enhanced security and audit features
| Column | Type | Format | Nullable | Default | Notes |
|---|---|---|---|---|---|
idPK | string | uuid | — | gen_random_uuid() | This is a Primary Key. |
client_token | string | text | — | — | — |
nonce | string | text | — | — | — |
user_id | string | uuid | ✓ | — | — |
purpose | string | text | — | — | — |
expires_at | string | timestamp with time zone | — | — | — |
created_at | string | timestamp with time zone | — | now() | — |
used_at | string | timestamp with time zone | ✓ | — | — |
revoked | boolean | boolean | — | — | |
revoked_reason | string | text | ✓ | — | — |
verification_attempts | integer | integer | — | 0 | — |
last_verification_at | string | timestamp with time zone | ✓ | — | — |
last_verification_ip | string | inet | ✓ | — | — |
last_verification_user_agent | string | text | ✓ | — | — |
metadata | object | jsonb | ✓ | — | — |
scopes | array | text[] | ✓ | — | — |