V1 Customers
Customer management (v1)
List customers with filtering and pagination.
Additional filter query parameters are available depending on the resource.
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.
Page number (1-based)
1Items per page (default 50)
50Sort field (prefix with - for descending)
-created_atFull-text search query
Paginated list of resources
Current page number
1Items per page
50Total number of items
250Total number of pages
5Unauthorized
Forbidden / insufficient scope
Internal server error
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
}Sends a magic link email to the specified customer.
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.
Customer ID
Redirect URL included in the magic link
Success
No content
Unauthorized
Forbidden / insufficient scope
Customer not found
Internal server error
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
Sends a magic link email to a customer identified by email address.
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.
Customer email address
Redirect URL included in the magic link
Success
No content
Unauthorized
Forbidden / insufficient scope
Internal server error
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
Generates a magic link token for the specified customer (does not send email).
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.
Customer ID
Redirect URL included in the magic link
Magic link token
Unauthorized
Forbidden / insufficient scope
Customer not found
Internal server error
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"
}Generates a magic link token for a customer identified by email address.
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.
Customer email address
Redirect URL included in the magic link
Magic link token
Unauthorized
Forbidden / insufficient scope
Internal server error
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