Skip to main content
The Pointed REST API works on the same workspace data as the Pointed app and the Pointed CLI: accounts, contacts, interviews, interview links and webhooks. Use it to connect Pointed to your CRM, your product or an AI agent.

Base URL and version

The version is part of the path. There is no version header. Every route except GET /api/cli/v1/auth/config needs a bearer credential. See Authentication. Request bodies are JSON objects. Send Content-Type: application/json with every body. The setup and workspace routes reject a body without that header.

Reference pages

For the events Pointed sends to your endpoint, see Webhooks.

Response format

A successful response has data and meta. data is an object or an array, depending on the route.
A failed response has error and meta. error is a sentence written for a person.
Some errors also carry a stable code in meta.code.
Decide what to do from the HTTP status and meta.code. Do not match on the text of error. It can change. A few routes differ from this format:
  • GET /api/cli/v1/auth/config returns a bare object with no data or meta.
  • The workspace routes put the error code in a top-level code field, next to error.
  • The setup routes add meta.retryable to every error.
  • PUT /api/cli/v1/interview-settings/{kind}/{id} answers a revision conflict with status 409 and a normal data object.
Each endpoint in this reference shows its full path. In tables and running text, a short path such as /accounts is relative to the base URL.

Request IDs

Every response in the standard format carries meta.requestId. The same value is in the X-Request-Id response header. Pointed generates it. You cannot supply your own. Pointed logs each write request with its request ID. Include the ID when you contact Pointed about a failed request.

Status codes

A 500 always carries the same text:
A 500 does not always mean a fault at Pointed. Several routes answer 500 for a problem with the request that they do not classify, such as an ID that does not exist or a contact email that the account does not accept. Each reference page lists the known cases. Check your input before you retry a 500. Every route that needs a credential can return the authentication errors: 401, 403 and 503. The error tables on the reference pages do not repeat all of them for every endpoint.

Error codes

meta.code is present only on some errors. The setup and workspace routes use their own codes. See Workspace and setup.

Errors that carry data

An error can include a data object with what you need to recover. Creating a contact whose email already exists on the account returns the existing contact:
See Create a contact for the fields.

IDs, times and fields

  • IDs are opaque strings. Do not parse them. A record’s ID is in _id.
  • Times are numbers: milliseconds since 1 January 1970 UTC. _creationTime and createdAt both use this form. Webhook event bodies use ISO 8601 text instead. See Webhooks.
  • Optional fields with no value are left out of a stored record. They are not sent as null.
  • Extra fields. Many routes return the stored record. A response can contain fields that this reference does not list. Ignore them. They can change.
Most routes do not check the form of an ID. An ID that is malformed, or that belongs to another kind of record, returns 500. A read route returns 404 for a well-formed ID that is not in your workspace. The webhook routes return 404 in both cases.

Limits

Pagination

Most list routes return the whole list. Four routes return pages: A cursor is an opaque string. A page can be empty before the last page. Keep going until the route says it is done.

Retrying requests

There is no idempotency key for ordinary writes. These routes are safe to repeat:
  • Creating a contact twice returns 409 with the existing contact. No second contact is created.
  • Creating links twice returns the same links, marked "reused": true, while the earlier links are still valid.
  • Creating a webhook endpoint with an address the workspace already has returns 409.
Creating an account twice creates two accounts unless you send a domain. A domain can belong to one account only, so the second request returns 400. Smart intake previews, setup tasks and workspace creation take a request key of their own. See their pages.

A typical integration

This walk-through invites one person at a customer account to an interview and learns when they finish. It uses these values: the account Acme, the contact Sarah Lee, your own user ID cus_8231 for her, and the link label user_8231.

1. Check the credential

data.orgName is the workspace the credential acts in. data.scopes must include pointed:read and pointed:write for the steps below.

2. Find or create the account

List the accounts and look for the one you want by name or domain.
If it is not there, create it.
Keep data._id. It is the account ID.

3. Create the contact with your own ID

Keep data._id. It is the contact ID. If the response is 409, the contact already exists and its ID is in data.contact._id. To check first, look the person up by your own ID:

4. Find the account’s interviews

A campaign is the set of interviews for one account.
Keep the _id of the campaign you want. If the list is empty, enroll the account in a story template. Enrollment creates the account’s campaign.
Then list the campaigns again.
Each entry in data.results has a surveyUrl to give to the person and an inviteId. Creating a link does not send an email. Send the link yourself, or use the invite email routes.

6. Register a webhook endpoint

Store data.secret. It is shown once. This step needs a credential that belongs to a workspace admin. You only do it once per endpoint. Register the endpoint before the person takes the interview. An endpoint receives only events that happen while it is on.

7. Receive interview.completed

When Sarah finishes the interview, Pointed posts an interview.completed event to your endpoint. You can match it to your own records in three ways:
  • data.interview.id is the inviteId from step 5.
  • data.invite.reference is user_8231.
  • data.contact.external_id is cus_8231.
See Webhooks for the event body, signature verification and retries.