Platform GraphQL API
The Platform GraphQL API provides advanced capabilities for creating and managing complete offers. Access the API at:
- Test Environment: https://api.stable.life.li/graphql/partner-platform
- Production: https://api.life.li/graphql/partner-platform
Authentication
Both endpoints include a GraphQL playground for interactive API exploration. To authenticate:
-
In the browser authentication popup:
- Leave the username empty
- Enter your API key as the password
-
In the playground's Headers section, add:
{"Authorization": "Bearer YOUR-API-KEY","x-partner-id": "YOUR-PARTNER-ID" // Required if you have multiple partner IDs}
If you're working with multiple partner IDs or are a platform serving multiple partners:
- Each Partner ID must be mapped to your API key
- Contact support to set up new ID mappings
Environments
- Stable: A clone of our production environment, ideal for development and testing
- Production: Live environment for real transactions
If you previously used the Customer Digital Onboarding flow and the partner graph, your existing credentials will work with the partner-platform graph.
Security Best Practices
- Keep your API key secure and never expose it in client-side code
- Use environment variables for storing credentials
- Request new API keys if they are compromised
- Use HTTPS for all API communications
AI Integration Prompt
Copy this prompt and paste it into your AI coding assistant to set up the API client:
Interactive API Explorer
Explore the schema and run queries directly in the GraphQL playground:
Authenticate via the browser Basic Auth popup (leave username empty, enter your API key as password), then add your headers in the playground's Headers tab.