Authentication
All Tick&Live APIs use a simple header-based authentication system.
Tenant Header
All API requests require the x-tenant header containing your tenant ID.
Example Request
curl -X GET "http://tempsreel-pre.connect.tickandlive.com/api/v1/catalog/events" \
-H "x-tenant: your-tenant-id" \
-H "Accept: application/json"
Getting Your Tenant ID
Your tenant ID is provided when you sign up for API access. Contact xxxxxxxxxxxx@tickandlive.com if you need to retrieve or reset your tenant ID.
Security Best Practices
- Never expose your tenant ID in client-side code or public repositories
- Use environment variables to store your tenant ID
- Rotate your tenant ID if it's ever compromised (contact support)
- Use HTTPS in production - never make API calls over HTTP
Error Responses
If you omit the x-tenant header or provide an invalid tenant ID, you'll receive a 400 Bad Request response:
{
"type": "https://tools.ietf.org/html/rfc7231#section-6.5.1",
"title": "Bad Request",
"status": 400,
"detail": "The x-tenant header is required"
}
Environment-Specific Configuration
Pre-production Environment
Use the pre-production base URL for testing:
http://tempsreel-pre.connect.tickandlive.com
Code Examples
cURL
curl -X GET "http://tempsreel-pre.connect.tickandlive.com/api/v1/catalog/venues" \
-H "x-tenant: your-tenant-id" \
-H "Accept: application/json"
C#
var client = new HttpClient();
client.DefaultRequestHeaders.Add("x-tenant", Environment.GetEnvironmentVariable("TICKANDLIVE_TENANT_ID"));
client.DefaultRequestHeaders.Add("Accept", "application/json");
Python
import os
import requests
headers = {
"x-tenant": os.getenv("TICKANDLIVE_TENANT_ID"),
"Accept": "application/json"
}
JavaScript/Node.js
const headers = {
'x-tenant': process.env.TICKANDLIVE_TENANT_ID,
'Accept': 'application/json'
};
Next Steps
- TempsReel Quick Start - Get started with TempsReel API
- Complete Authentication Guide - Detailed authentication documentation
- Error Handling - Learn how to handle authentication errors