Developers
REST API
Records, products, custom objects and lists, JSON in and out.
https://api.trypromptlab.com/api/v1
Base URL
Authorization: Bearer pl_live_…
Auth header
- 10 / second
- 300 / minute
- 10,000 / hour
Rate limits per key · 429
API keys
SettingsDevelopersAPI keysWorkspace owners and admins
- Shown once, when you create it.
- Acts as the admin who created it, with the same permissions.
- Stops working if that person leaves the workspace.
- Revoke it at any time.
Endpoints
| GET | /{resource} | List |
| GET | /{resource}/{id} | Get one |
| POST | /{resource} | Create |
| PATCH | /{resource}/{id} | Update |
| DELETE | /{resource}/{id} | Delete |
Example
curl -X POST https://api.trypromptlab.com/api/v1/accounts \
-H "Authorization: Bearer pl_live_…" \
-H "Content-Type: application/json" \
-d '{"name":"Acme","website":"https://acme.com"}'{
"data": {
"id": "665f1c2a9b1e8a0012ab34cd",
"object": "account",
"name": "Acme",
"website": "https://acme.com",
"createdAt": "2026-10-22T08:15:51.000Z",
"updatedAt": "2026-10-22T08:15:51.000Z"
}
}curl -X PATCH https://api.trypromptlab.com/api/v1/opportunities/<id> \
-H "Authorization: Bearer pl_live_…" \
-H "Content-Type: application/json" \
-d '{"stage":"QUALIFIED"}'Responses
{
"data": [ … ],
"pagination": {
"page": 1,
"limit": 10,
"total": 42,
"totalPages": 5
}
}{
"data": {
"id": "665f1c2a…",
"deleted": true
}
}{
"statusCode": 401,
"message": "…",
"error": "invalid_api_key"
}Errors
| Status | Meaning |
|---|---|
| 400 | Invalid body or query. An unknown field gives `property X should not exist`. |
| 401 | Missing, wrong or revoked key |
| 403 | The key's admin has no access to this record or action |
| 404 | No record with this id |
| 429 | Over the rate limit: wait and retry |
| 500 | Server error: retry later. The key still works. |
Resources
limit: max 100, default 10. sortOrder: asc or desc.
/contacts
"object": "contact"| Field | Type | Notes |
|---|---|---|
firstName | string | Required |
lastName | string | |
middleName | string | |
jobTitle | string | |
department | string | |
decisionRole | enum | DECISION_MAKERINFLUENCERTECHNICAL_EVALUATORBUYERPROCUREMENTEND_USERGATEKEEPER |
email | string | |
emails | string[] | |
phone | object | valuelabel: work | mobile | home | other |
phoneNumbers | object[] | valuelabel: work | mobile | home | other |
linkedIn | string | |
address | object | streetAddresscitystatezipCodecountry |
region | string | |
accountId | id→ accounts | |
opportunityId | id→ opportunities | |
isPrimary | boolean | |
customFields | object |
List filterspagelimitsearchaccountIdopportunityIdsortBysortOrder
/accounts
"object": "account"| Field | Type | Notes |
|---|---|---|
name | string | Required |
website | string | |
linkedIn | string | |
phone | string | |
address | object | streetAddresscitystatezipCodecountry |
region | string | |
primaryIndustry | string | |
businessType | enum | MANUFACTURERDISTRIBUTORTRADEREND_USER |
description | string | |
source | string | |
estimatedAnnualRevenue | number | |
employeeCount | number | |
ownerId | id | |
customFields | object |
List filterspagelimitsearchprimaryIndustrybusinessTypesortBysortOrder
/opportunities
"object": "opportunity"Move an opportunity with PATCH and a new stage.
| Field | Type | Notes |
|---|---|---|
name | string | |
accountId | id→ accounts | Required |
contactIds | id[]→ contacts | |
assignedSalesOwner | id | |
stage | string | |
priority | enum | LOWMEDIUMHIGH |
source | enum | EXPOLINKEDINDIRECT_MEETINGWEBSITE_INQUIRYDISTRIBUTOR_REFERRALCOLD_CALLEXISTING_CUSTOMER_REFERRALCONFERENCEEMAIL_CAMPAIGNEMAILTRADE_PUBLICATIONSALESFORCEHUBSPOTACUMATICAOTHER |
lossReason | enum | PRICECOMPETITORTIMINGNO_BUDGETPRODUCT_FITOTHER |
closeDate | date | |
estimatedOpportunityValueUSD | number | |
expectedAnnualVolumeMT | number | |
nextFollowUpDate | date | |
customFields | object |
List filterspagelimitsearchstageaccountIdcontactIdassignedSalesOwnersortBysortOrder
/notes
"object": "note"| Field | Type | Notes |
|---|---|---|
content | string | Required |
title | string | |
accountId | id→ accounts | |
contactId | id→ contacts | |
opportunityId | id→ opportunities | |
customFields | object |
List filterspagelimitaccountIdcontactIdopportunityId
/tasks
"object": "task"Close a task with PATCH and "status": "completed".
| Field | Type | Notes |
|---|---|---|
name | string | Required |
description | string | |
assigneeIds | id[] | |
priority | enum | lowmediumhighurgent |
taskType | string | |
dueDate | date | |
accountId | id→ accounts | |
contacts | id[]→ contacts | |
opportunityId | id→ opportunities | |
customFields | object | |
status | enum | PATCH onlytodoin_progresscompletedexpired |
List filterspagelimitsearchstatusaccountIdcontactIdopportunityIdsortBysortOrder
/products
"object": "product"price is required unless hidePrice is true.
| Field | Type | Notes |
|---|---|---|
name | string | Required |
unitType | string | Required |
currency | string | Required |
productCode | string | |
category | string | |
status | enum | activeinactive |
productDescription | string | |
price | number | |
costPrice | number | |
vatPercentage | number | |
hidePrice | boolean | |
customFields | object |
List filterspagelimitsearchstatuscategorysortBysortOrder
Custom objects and lists
Their fields are set per workspace. Read fields first, then send values by each field's key. An unknown key gives 400.
/objects
"object": "object""object": "object_record"GET /objects/{objectId} returns the object's fields. A record keeps its data in values.
| GET | /objects | List |
| GET | /objects/{objectId} | Get one |
| GET | /objects/{objectId}/records | List |
| GET | /objects/{objectId}/records/{recordId} | Get one |
| POST | /objects/{objectId}/records | Create |
| PATCH | /objects/{objectId}/records/{recordId} | Update |
| DELETE | /objects/{objectId}/records/{recordId} | Delete |
/lists
"object": "list""object": "list_entry"POST adds one record: recordId (of the list's recordType) and optional values. Adding it again returns the same entry.
| GET | /lists | List |
| GET | /lists/{listId} | Get one |
| GET | /lists/{listId}/entries | List |
| GET | /lists/{listId}/entries/{entryId} | Get one |
| POST | /lists/{listId}/entries | Create |
| PATCH | /lists/{listId}/entries/{entryId} | Update |
| DELETE | /lists/{listId}/entries/{entryId} | Delete |
{
"data": {
"id": "665f1c2a9b1e8a0012ab34cd",
"object": "object",
"name": "Payments",
"fields": [
{ "key": "payment", "label": "Payment", "type": "string", "required": false },
{ "key": "status", "label": "Status", "type": "status", "required": false,
"options": [{ "value": "status_0", "label": "Paid" }] },
{ "key": "amount", "label": "Amount", "type": "currency", "required": false }
]
}
}curl -X POST https://api.trypromptlab.com/api/v1/objects/<objectId>/records \
-H "Authorization: Bearer pl_live_…" \
-H "Content-Type: application/json" \
-d '{"values":{"payment":"INV-104","status":"status_0","amount":250}}'curl -X POST https://api.trypromptlab.com/api/v1/lists/<listId>/entries \
-H "Authorization: Bearer pl_live_…" \
-H "Content-Type: application/json" \
-d '{"recordId":"<account id>","values":{"tier":"gold"}}'




