For the complete documentation index, see llms.txt. This page is also available as Markdown.

V1 Customers

Customer management (v1)

List customers

get

List customers with filtering and pagination.

Additional filter query parameters are available depending on the resource.

Authorizations
AuthorizationstringRequired

Account API key authentication. Pass an API key as a Bearer token in the Authorization header. An account may have multiple named keys; any of them grants full access to all endpoints — equivalent to all OAuth scopes.

Query parameters
pageintegerOptional

Page number (1-based)

Example: 1
per_pageintegerOptional

Items per page (default 50)

Example: 50
sortstringOptional

Sort field (prefix with - for descending)

Example: -created_at
searchstringOptional

Full-text search query

Responses
200

Paginated list of resources

application/json
pageintegerRequired

Current page number

Example: 1
per_pageintegerRequired

Items per page

Example: 50
totalintegerRequired

Total number of items

Example: 250
total_pagesintegerRequired

Total number of pages

Example: 5
get/v1/customers
GET /v1/customers HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "data": [],
  "page": 1,
  "per_page": 50,
  "total": 250,
  "total_pages": 5
}

Send customer magic link email

post

Sends a magic link email to the specified customer.

Authorizations
AuthorizationstringRequired

Account API key authentication. Pass an API key as a Bearer token in the Authorization header. An account may have multiple named keys; any of them grants full access to all endpoints — equivalent to all OAuth scopes.

Path parameters
customer_idstringRequired

Customer ID

Body
urlstringOptional

Redirect URL included in the magic link

Responses
200

Success

No content

post/v1/customers/{customer_id}/auth
POST /v1/customers/{customer_id}/auth HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 14

{
  "url": "text"
}

No content

Send magic link email by email address

post

Sends a magic link email to a customer identified by email address.

Authorizations
AuthorizationstringRequired

Account API key authentication. Pass an API key as a Bearer token in the Authorization header. An account may have multiple named keys; any of them grants full access to all endpoints — equivalent to all OAuth scopes.

Body
emailstringRequired

Customer email address

urlstringOptional

Redirect URL included in the magic link

Responses
200

Success

No content

post/v1/customers/auth
POST /v1/customers/auth HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 29

{
  "email": "text",
  "url": "text"
}

No content

Generate customer magic link token

post

Generates a magic link token for the specified customer (does not send email).

Authorizations
AuthorizationstringRequired

Account API key authentication. Pass an API key as a Bearer token in the Authorization header. An account may have multiple named keys; any of them grants full access to all endpoints — equivalent to all OAuth scopes.

Path parameters
customer_idstringRequired

Customer ID

Body
urlstringOptional

Redirect URL included in the magic link

Responses
200

Magic link token

application/json
magic_link_tokenstringRequired
post/v1/customers/{customer_id}/login
POST /v1/customers/{customer_id}/login HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 14

{
  "url": "text"
}
{
  "magic_link_token": "text"
}

Generate magic link token by email

post

Generates a magic link token for a customer identified by email address.

Authorizations
AuthorizationstringRequired

Account API key authentication. Pass an API key as a Bearer token in the Authorization header. An account may have multiple named keys; any of them grants full access to all endpoints — equivalent to all OAuth scopes.

Body
emailstringRequired

Customer email address

urlstringOptional

Redirect URL included in the magic link

Responses
200

Magic link token

application/json
magic_link_tokenstringRequired
post/v1/customers/login
POST /v1/customers/login HTTP/1.1
Host: api.spiffy.co
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 29

{
  "email": "text",
  "url": "text"
}
{
  "magic_link_token": "text"
}

Last updated