Documentation Index
Fetch the complete documentation index at: https://developers.firmly.ai/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Server-to-Server (S2S) authentication enables your backend services to make authenticated API requests to Firmly APIs. This method is designed for backend integrations where your server communicates directly with Firmly’s APIs.Required Headers
Server-to-server secret token provisioned by Firmly. This is not your APPID — it is a dedicated secret mapped internally to your tenant for request isolation.
The device identifier of the client making the request. Your backend passes this through when making API calls on behalf of a client device.
Device ID
Thex-firmly-device-id is used for cart isolation and session management. Pass through your client’s device ID when making API calls on their behalf.
Device ID Requirements
| Rule | Requirement |
|---|---|
| Presence | Must be present and non-empty |
| Max Length | 256 characters |
| Allowed Characters | a-z, A-Z, 0-9, -, _ |
user-12345session_abc12382b10522-5483-4719-b599-6d78b12827f0
- Empty string
user.id(period not allowed)user id(space not allowed)
Code Examples
Error Responses
400 Bad Request - Missing Device ID
400 Bad Request - Missing Device ID
The
x-firmly-device-id header is missing or empty.400 Bad Request - Invalid Device ID Format
400 Bad Request - Invalid Device ID Format
The device ID exceeds 256 characters or contains invalid characters.
401 Unauthorized - Invalid Token
401 Unauthorized - Invalid Token
Supported Endpoints
Server-to-Server authentication is supported on:Next Steps
- Search Products - Search for products using S2S auth
- Get Search Options - Retrieve filter options