Developer Quickstart
Learn how to make your first API request.
API Key Management
You will need an API key to authenticate your requests to the Mechanix API.
To obtain your API key, navigate to the dashboard
and copy the value beginning with mec-
.
Store the API key in a secure area, such as an .env
file. Exporting the API key as an
environment variable enables it to be utilized in code:
Use the export
command to set the MECHANIX_API_KEY
environment variable:
First API Request
With your API key exported, you can make your first request using either the REST API directly or the Python SDK. Here, we’ll query the Web Search tool to know what OpenAI’s ‘o3’ model is.
Install the Mechanix Python SDK using pip
:
Make your first API request:
Next Steps
You’ve now made your first Mechanix API request! 🎉
Explore the following resources to continue learning:
Was this page helpful?