Upsales uses REST API, which means that you can create, fetch or update anything in your Upsales account via an integrated or custom application. It's done by using an API key that you generate in Upsales.
This article covers:
- API key best practices
- How to activate the API Product
- How to create an API key
- What the API-keys list shows
- How to include API activity in reports
- How to delete an API key
API key best practices
The API key has unlimited access to modify your Upsales account. Only administrators can create and delete API keys. We strongly recommend:
- Restricting access to the API key
- Creating a separate API key for each integration, for tracking actions and troubleshooting integrations
How to activate the API Product
If API-keys is not listed under Settings → Account → Security, the API is not active in your account. A user with the Billing admin permission activates it like this:
- To activate the Upsales API, click Settings → Account → Billing portal:
- Click Products:
- On the API card, click Add to plan.
The API add-on is free up to 99,999 requests per day. To see the price for more requests, click See all tiers on the API card.
Only administrators see API-keys. If it is still not listed after the add-on is activated, log out of Upsales and log in again.
How to create an API key
- Click Settings → Account → Security → API-keys:
- You'll find a list of any previously created. Click New API-key:
- Enter a Name to identify the API key:
- Click Generate key:
- The unique API key is displayed. This is the only time this key will be displayed.
- Click Click to copy to copy the API key to your computer's clipboard:
- Paste the API key in a safe location for storage.
- Select Close to close the Create API-key screen:
An API key keeps working when the administrator who created it is deactivated. A key cannot be edited or displayed again. To replace a key, create a new one, update your integration with it, and then delete the old key.
What the API-keys list shows
The list shows the Name of each API key. It does not show when a key was created or who created it, so give each key a name that tells you which integration uses it.
Apps can also add API keys to the list. A key for an app that each user activates for themselves is listed as user name - app name. A gray key belongs to an inactive user, see Why are some of our API keys gray?
How to include API activity in reports
Appointments, activities and other entities created with API integrations are excluded from reports by default. To include them:
- Click Settings → Account → Security → API-keys:
- Under API integrations in reports, turn on Include API integrations in reports:
How to delete an API Key
- Click Settings → Account → Security → API-keys:
- Hover over the API key you want to delete. Click the trash icon that appears:
View Upsales API documentation for more on programming API key usage