- Workspace routes tell you whether the person behind the credential has a Pointed workspace, and create or select one.
- Setup task routes take a goal in plain words, propose an interview template with accounts and contacts, and apply the plan after you approve it.
pointed:setup scope and a user-backed credential. Both use an error format that differs a little from the rest of the API. Each section shows it.
Either group can be turned off. Each section says what the API returns then.
Workspace routes
Most integrations never call these routes. A credential that already works with the other routes has a workspace. Use them when you set up Pointed for a person who has signed in but has no workspace yet.Workspace error format
A failed workspace request puts its code in a top-levelcode field.
Get workspace status
pointed:read and pointed:setup. A user-backed credential.
Returns the state of the person’s workspace access. It takes no parameters.
Response: 200 OK
A credential that is bound to one workspace sees only that workspace here. An OAuth token is bound to the workspace chosen at sign-in. For such a credential, a status other than
ready usually carries the code OAUTH_WORKSPACE_SELECTION_REQUIRED. Otherwise disabled carries BOOTSTRAP_DISABLED.
Errors: see Workspace error format.
Example
Create or select a workspace
pointed:read and pointed:setup. A user-backed credential.
Creates a new workspace, or selects an organization the person already belongs to as their workspace.
Body parameters
Send
name or clerkOrgId, not both. The body accepts these three fields only. The request must carry Content-Type: application/json.
A credential that is bound to one workspace can select that workspace only. It cannot create another. To create a workspace with name, use a credential that is not bound to a workspace yet.
Response: 200 OK. data has the same fields as Get workspace status.
data.status:
ready: the workspace exists and the person can use it.retryable: the workspace could not be confirmed. Send the same request again.selection_required: the person already belongs to an organization. Select it instead of creating a new workspace.disabled: this route is turned off.blocked:codeandmessagesay why.
data.requestId is present, it is the request key of the workspace setup. meta.requestId identifies this HTTP request. They are different values.
Errors: see Workspace error format.
Example
Setup task routes
A setup task prepares interviews from a short brief. It can do four things: create a story template, create or reuse accounts and contacts, enroll the contacts, and prepare interview links. It never sends email. A task goes through these steps:- You create the task with a goal. Pointed drafts a plan. You can also supply your own plan.
- You read the task until it has a
proposal. - You review the proposal. You can replace it or change the brief.
- You approve the exact proposal you reviewed, by its
planDigest. - Pointed applies the plan. You read the task until it is
completed.
"enabled": false, and creating or changing a task returns 503 with meta.code setup_disabled. Reading and cancelling existing tasks still work.
The setup task object
The proposal
A proposal accepts these fields only.
Setup error format
A failed setup request hasmeta.code and meta.retryable.
Limits: three tasks that are drafting or running for each person, and 20 new tasks an hour for each person.
Request keys
Every request that changes a task carries a key you choose:clientRequestId when you create a task, requestId for every later change. A key is 8 to 128 characters from letters, digits, _ and -.
If a response is lost, send the same request again with the same key. Pointed returns the task and does not apply the change twice. The same key with a different request returns 409 request_conflict.
Get setup capabilities
pointed:read and pointed:setup. A user-backed credential. Any workspace role.
Says whether setup tasks are turned on and whether this person can use them.
Response: 200 OK
Errors: see Setup error format.
Example
List setup tasks
pointed:read and pointed:setup. A user-backed credential that belongs to a workspace admin.
Returns the 30 most recent tasks this person created, newest first. It takes no parameters.
Response: 200 OK. data is an array of setup task objects.
Create a setup task
pointed:read and pointed:setup. A user-backed credential that belongs to a workspace admin.
Body parameters
The body accepts these fields only.
Without
proposal, the task starts as drafting and Pointed prepares a plan from the brief. With proposal, the task starts as ready_for_review.
Response: 200 OK. data is the new setup task object.
Get a setup task
pointed:read and pointed:setup. A user-backed credential that belongs to a workspace admin.
Path parameters
Response:
200 OK. data is the setup task object.
Update a setup task
pointed:read and pointed:setup. A user-backed credential that belongs to a workspace admin.
Changes the brief or replaces the proposal. You can do this until a plan has started to be applied. Any change gives the task a new revision and a new planDigest, so an earlier approval no longer fits.
Path parameters
Body parameters
Send
input or proposal, not both. The body accepts these fields only.
Response: 200 OK. data is the updated setup task object.
Approve a setup task
pointed:read and pointed:setup. A user-backed credential that belongs to a workspace admin.
Approves the current proposal and starts applying it. The task must have status ready_for_review.
Path parameters
Body parameters
The body accepts these fields only.
Response:
200 OK. data is the setup task object, now running.
status is completed and outcomes lists what was made:
url. Use it with Create interview links to get the links.
Errors: see Setup error format.
Example
Cancel a setup task
pointed:read and pointed:setup. A user-backed credential that belongs to a workspace admin.
Stops a task that is not completed or already cancelled. Work that has not started is dropped. Changes already made are kept.
Path parameters
Body parameters
The body accepts these fields only.
Response:
200 OK. data is the setup task object, now cancelled.
Retry a setup task
pointed:read and pointed:setup. A user-backed credential that belongs to a workspace admin.
Retries a task with status failed whose failure.retryable is true. If the plan was approved, Pointed continues with the operations that are not done. Otherwise Pointed drafts the plan again. A task can be attempted three times.
Path parameters
Body parameters
The body accepts these fields only.
Response:
200 OK. data is the setup task object, now running or drafting.