Get up and running with the Exec API in just a few steps.
Prerequisites
You have an Exec workspace with admin access
Step 1: Create an API Key
Go to Settings > API
Navigate to your workspace settings and click API in the sidebar.
Create a new key
Click Create API Key, enter a name like “Quickstart Test”, and click Create.
Copy your key
Copy the displayed key immediately. It looks like exec_live_aB3dE5...
Step 2: Make Your First Request
Open a terminal and run this command, replacing YOUR_API_KEY with the key you copied:
curl -X GET "https://api.exec.com/rest/v1/workspace" \
-H "Authorization: Bearer YOUR_API_KEY"
Step 3: Check the Response
You should receive a JSON response with your workspace information:
{
"id": "a1b2c3d4e5f6",
"name": "Your Workspace Name",
"url_slug": "your-workspace",
"created_at": "2024-01-15T10:30:00Z"
}
If you see your workspace data, you’re all set!
Troubleshooting
- Check that your API key is correct and complete
- Ensure the key hasn’t been deactivated
- Verify the
Bearer prefix is included (with the space)
- Verify you’re using the correct base URL:
https://api.exec.com/rest/v1/
- Check your network connection and firewall settings
Next Steps