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
Custom objects and lists/objects/lists

Example

Request
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"}'
Response · 201
{
  "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"
  }
}
PATCH · Request
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

List
{
  "data": [ … ],
  "pagination": {
    "page": 1,
    "limit": 10,
    "total": 42,
    "totalPages": 5
  }
}
Delete
{
  "data": {
    "id": "665f1c2a…",
    "deleted": true
  }
}
Error
{
  "statusCode": 401,
  "message": "…",
  "error": "invalid_api_key"
}

Errors

StatusMeaning
400Invalid body or query. An unknown field gives `property X should not exist`.
401Missing, wrong or revoked key
403The key's admin has no access to this record or action
404No record with this id
429Over the rate limit: wait and retry
500Server error: retry later. The key still works.

Resources

limit: max 100, default 10. sortOrder: asc or desc.

/contacts

"object": "contact"
FieldTypeNotes
firstNamestringRequired
lastNamestring
middleNamestring
jobTitlestring
departmentstring
decisionRoleenumDECISION_MAKERINFLUENCERTECHNICAL_EVALUATORBUYERPROCUREMENTEND_USERGATEKEEPER
emailstring
emailsstring[]
phoneobjectvaluelabel: work | mobile | home | other
phoneNumbersobject[]valuelabel: work | mobile | home | other
linkedInstring
addressobjectstreetAddresscitystatezipCodecountry
regionstring
accountIdid→ accounts
opportunityIdid→ opportunities
isPrimaryboolean
customFieldsobject
List filterspagelimitsearchaccountIdopportunityIdsortBysortOrder

/accounts

"object": "account"
FieldTypeNotes
namestringRequired
websitestring
linkedInstring
phonestring
addressobjectstreetAddresscitystatezipCodecountry
regionstring
primaryIndustrystring
businessTypeenumMANUFACTURERDISTRIBUTORTRADEREND_USER
descriptionstring
sourcestring
estimatedAnnualRevenuenumber
employeeCountnumber
ownerIdid
customFieldsobject
List filterspagelimitsearchprimaryIndustrybusinessTypesortBysortOrder

/opportunities

"object": "opportunity"

Move an opportunity with PATCH and a new stage.

FieldTypeNotes
namestring
accountIdid→ accountsRequired
contactIdsid[]→ contacts
assignedSalesOwnerid
stagestring
priorityenumLOWMEDIUMHIGH
sourceenumEXPOLINKEDINDIRECT_MEETINGWEBSITE_INQUIRYDISTRIBUTOR_REFERRALCOLD_CALLEXISTING_CUSTOMER_REFERRALCONFERENCEEMAIL_CAMPAIGNEMAILTRADE_PUBLICATIONSALESFORCEHUBSPOTACUMATICAOTHER
lossReasonenumPRICECOMPETITORTIMINGNO_BUDGETPRODUCT_FITOTHER
closeDatedate
estimatedOpportunityValueUSDnumber
expectedAnnualVolumeMTnumber
nextFollowUpDatedate
customFieldsobject
List filterspagelimitsearchstageaccountIdcontactIdassignedSalesOwnersortBysortOrder

/notes

"object": "note"
FieldTypeNotes
contentstringRequired
titlestring
accountIdid→ accounts
contactIdid→ contacts
opportunityIdid→ opportunities
customFieldsobject
List filterspagelimitaccountIdcontactIdopportunityId

/tasks

"object": "task"

Close a task with PATCH and "status": "completed".

FieldTypeNotes
namestringRequired
descriptionstring
assigneeIdsid[]
priorityenumlowmediumhighurgent
taskTypestring
dueDatedate
accountIdid→ accounts
contactsid[]→ contacts
opportunityIdid→ opportunities
customFieldsobject
statusenumPATCH onlytodoin_progresscompletedexpired
List filterspagelimitsearchstatusaccountIdcontactIdopportunityIdsortBysortOrder

/products

"object": "product"

price is required unless hidePrice is true.

FieldTypeNotes
namestringRequired
unitTypestringRequired
currencystringRequired
productCodestring
categorystring
statusenumactiveinactive
productDescriptionstring
pricenumber
costPricenumber
vatPercentagenumber
hidePriceboolean
customFieldsobject
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/objectsList
GET/objects/{objectId}Get one
GET/objects/{objectId}/recordsList
GET/objects/{objectId}/records/{recordId}Get one
POST/objects/{objectId}/recordsCreate
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/listsList
GET/lists/{listId}Get one
GET/lists/{listId}/entriesList
GET/lists/{listId}/entries/{entryId}Get one
POST/lists/{listId}/entriesCreate
PATCH/lists/{listId}/entries/{entryId}Update
DELETE/lists/{listId}/entries/{entryId}Delete
Object and its fields
{
  "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 }
    ]
  }
}
Create a record
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}}'
Add a record to a list
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"}}'