API keys provide a secure way to authenticate with the Oxy API without requiring user credentials. This guide covers everything you need to know about implementing API key authentication in your applications.
For a complete reference of all available API endpoints, visit our live Swagger API documentation at /apidoc. This interactive documentation allows you to:
Browse all available endpoints
View request/response schemas
Test API calls directly from your browser
Download OpenAPI specifications
The Swagger documentation is automatically updated and always reflects the current API version running on your Oxy instance.
import requestsimport os# Set up your API keyapi_key = os.getenv('OXY_API_KEY')headers = {'X-API-Key': api_key}# List your workflowsresponse = requests.get('https://api.oxy.com/workflows', headers=headers)workflows = response.json()print(f"Found {len(workflows)} workflows")
# List your workflowscurl -H "X-API-Key: $OXY_API_KEY" \ https://api.oxy.com/workflows# Create a new workflowcurl -X POST \ -H "X-API-Key: $OXY_API_KEY" \ -H "Content-Type: application/json" \ -d '{"name": "My Workflow", "description": "A sample workflow"}' \ https://api.oxy.com/workflows