Get started with the Convut REST API
Authenticate with an API key, then list, create, update and delete contacts, companies, deals, tickets and custom object records.
Updated oct 16 · 3 min read
The Convut REST API lets your own systems read and write your CRM data. It uses JSON over HTTPS, and every request is authenticated with an API key from your workspace. This article covers what a developer needs to make the first calls.
Before you start
Create an API key in Settings → API keys. See Create an API key. The key decides both what the API can do (read, write, delete) and which records it can reach.
Authenticate
Send the key in the Authorization header as a bearer token. Keys are never accepted in the URL.
curl https://app.convut.com/api/v1/me \ -H "Authorization: Bearer YOUR_API_KEY"
GET /api/v1/me confirms the key works. It returns your workspace's name and the key's name, scopes, role and effective permissions.
Endpoints
All paths start with https://app.convut.com/api/v1.
/contacts,/companiesand/deals:GETto list,POSTto create, andGET,PATCHorDELETEon/{resource}/{id}for one record./tickets:GETto list,POSTto create, andGET /tickets/{id}for one ticket./objects: lists your custom objects with their schema. Use/objects/{key}/recordsto list, create, update and delete records of an object, and/objects/{key}/records/{id}/linksto manage the links between records.
Required fields when creating: contacts need firstName and lastName; companies need name; deals need title and stageId; tickets need contactId and title.
curl -X POST https://app.convut.com/api/v1/contacts \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"firstName":"Ada","lastName":"Lovelace","email":"ada@example.com"}'PATCH is a partial update. Send only the fields that change; send null to clear a field. To move a deal, send a new stageId; every deal the API returns includes its stageId. A deal's value is returned as a string, such as "1234.56", so no cents are lost.
Lists and pagination
Lists are newest first and use a cursor:
GET /api/v1/contacts?limit=100&starting_after=NEXT_CURSOR
The response is { "data": [...], "has_more": true, "next_cursor": "..." }. Keep passing next_cursor as starting_after until has_more is false. limit defaults to 50 and can be up to 100. Add updated_since (an ISO 8601 date) to fetch only records changed since your last sync.
Contacts also accept email to look someone up by address, and contacts, companies and deals accept q for a text search.
Errors
Errors return JSON with an error message and usually a code:
401: the key is missing or invalid.403: your plan doesn't include API access, the key doesn't have the scope (insufficient_scope), or the key's role doesn't allow it (insufficient_permission).400:invalid_request(afieldnames the problem) orinvalid_reference(an id isn't in your workspace).404:not_found.409:duplicate.429:rate_limited. Each key may make 120 requests a minute. Wait for the number of seconds in theRetry-Afterheader before trying again.
Tips
- Records created or changed through the API fire the same webhooks as changes made in the app. See Set up webhooks.
- Custom fields on contacts, companies and deals, and activities, notes and tasks, are not available through the API yet.
Did this answer your question?
Still stuck? Get in touch