What it is
This quickstart gets you to your first call to the Symphony API in a few minutes. The API lets systems, scripts, and automations use your company’s models, agents, and knowledge bases without going through the interface. After this quickstart, continue to:Building projects with the API
Complete guide, with recipes.
API reference
All available endpoints, with parameters and responses.
Errors and limits
How to handle failures.
Environments and support
Where to test and how to get help.
Prerequisites
- An active AI Symphony account.
- An API key (starts with
sk-). - Your company ID, for the
X-Enterprise-Idheader.
Step 1 — Generate the API key
1
Open AI Symphony
Go to symphony.fcamara.com.
2
Click your username
In the bottom-left corner.
3
Go to Settings
4
Open the Account tab (or Connections, depending on the version)
Open API keys.
5
Create and copy the key
Click API key and copy the generated key. It starts with
sk-.Step 2 — Find your company ID
Symphony serves several companies, and each has its own catalog of models, agents, and knowledge bases. The key doesn’t carry this information, so you specify the company on every call with theX-Enterprise-Id header.
Ask your company’s Symphony administrator for this ID.
Without this header, you get “model not found” for a model that works fine in the interface.
Step 3 — Make your first call
Every call uses the same three headers:You don’t need cookies or a CSRF token. Those steps only apply to the browser. Integrations that use an API key skip them.
https://symphony.fcamara.com
List the models you can use
id of one of the returned items. That’s the value that goes in the model field.
Send a message
200 OK), in OpenAI format:
Python example
The API is compatible with OpenAI’s. With the officialopenai library, just change the URL and the key. Without a library, use requests:
Most common issues when starting out
The full list is in Errors and limits.
Security best practices
- Store the key in an environment variable or secrets vault.
- Never put the key in code that runs in the browser, in a repository, in a URL, or in a log.
- Always use HTTPS.
- For production integrations, ask the administrator for a dedicated technical account. That way, generating a new personal key doesn’t break the automation.
Frequently asked questions
Which model should I use in the model field?
Which model should I use in the model field?
One of the
id values returned by GET /api/models. Agents created on the platform also appear in this list and can be used the same way.Do I need X-Enterprise-Id?
Do I need X-Enterprise-Id?
Yes, on every call.
Does the key expire?
Does the key expire?
No. It only stops working if you generate another one or it’s revoked.