Integrating with Spade's API
Authentication
Spade’s APIs use secret API key authentication, because it is the fastest approach available for low latency applications.
Each of Spade’s API environments requires a unique key which is passed in the X-Api-Key
header:
Environments
Spade provides servers located on both the East and West Coast as well as both a Production and Sandbox environment for each geo-located server.
Sandbox & Production
Your development environments should use our sandbox endpoints and your production environment should hit our production endpoints.
Sandbox and Production environments do not share the same API keys, recurrence, and custom user generated categories and category personalization.
East & West
We have servers located on both the East and West Coasts and recommend calling the server closest to your server location to minimize latency.
For best practices on reducing latency see our guide on reducing latency.
Counterparty and Location information is common across all environments. You can expect the same metadata to be returned for the same enrichment payload, regardless of environment.
Enrich your first transaction
Using Postmanusing cURL
Configuration
You can create a fork of Spade’s Postman collection by clicking this link
First you’ll want to ensure you update the collection with your correct API Key and environment URL by entering them in the corresponding current value fields and clicking ‘Save.’
Make the Postman request
The postman collection includes this test transaction we’ve provided, so all you need to do is click Send!
Configuration
You can create a fork of Spade’s Postman collection by clicking this link
First you’ll want to ensure you update the collection with your correct API Key and environment URL by entering them in the corresponding current value fields and clicking ‘Save.’
Make the Postman request
The postman collection includes this test transaction we’ve provided, so all you need to do is click Send!
Copy the example request below and replace SPADE-API-KEY with your environment specific credential in your terminal of choice (we like Warp!)