Quire provides an open API that lets you read and update Quire tasks programmatically. Many apps in our App Directory are built by directly interacting with the Quire API.
If an existing app doesn't meet your needs, you can build a custom integration. This article shows how to integrate Quire with external tools using the Quire API, with n8n as an example automation platform. The concepts apply to other low-code platforms (e.g., Zapier) as well.
To access the Quire API, you need to register an app in Quire, obtain a client ID and client secret, and configure a redirect URI for OAuth2.
For a step-by-step guide on how to create your Quire App with API, please visit our blog post.
You can self-host n8n (free) for testing. You can take a look at this official document.
Once running, create a new workflow where you will add nodes to perform API requests and process responses.
Quire uses OAuth2 for authorization. n8n helps by managing the token exchange for you when you create a credential.
Body
to ensure the credentials are sent in the correct format required by Quire.Quire API docs: https://quire.io/dev/api/
Use n8n's HTTP Request node to call the API. As an example, get all root tasks of a project:
https://quire.io/api
/task/list/id/{projectId}
(replace {projectId}
with the project ID from your project URL, usually be https://quire.io/w/<projectId>
)In the HTTP Request node:
https://quire.io/api/task/list/id/<your_project_id>
<the credential you just created>
Execute the node to see the response data on the right panel, you can pass that data to subsequent nodes for processing.
You can create tasks using the API (see Add a new task in the docs).
/task/id/{projectId}
In n8n's HTTP Request node:
https://quire.io/api/task/id/<your_project_id>
name
) and optional fields like description
.After enabling Send Body, make sure to set Body Content Type to JSON and Specify Body to Using JSON. This lets you choose to input your request body in JSON format, matching the sample code below:
{
"name": "Example task",
"description": "Created via n8n"
}
Execute the node; the response will contain the created task details and you should see the task in your Quire project.
Example request body with sourceRef
:
{
"name": "Task from n8n",
"description": "Automated task",
"sourceRef": {
"text": "[Open in MyApp](https://example.com/item/123)",
"meta": { "workflowId": "n8n-abc-123" }
}
}
sourceRef
is designed for storing custom data related to a task. The only predefined field is text
, which supports Markdown and will be shown in the Quire task details—perfect for links or short descriptions users can click. Any other fields you add under sourceRef
are entirely up to your application; for example, you might include a meta
object or other keys to store identifiers or flags for your automation, but these are optional.
When you read a task via the API, look for the sourceRef
object in the returned JSON. You can access the text
field and any custom data you stored, making it easy for your automation to track the origin and carry extra information for later processing.
Another useful field when creating or updating a task is asUser
.
If you set asUser
to true
, the activity log will show the Quire app’s name as the user who created or updated the task. This helps users identify which tasks were created by an API integration.
When working with APIs, errors are common and part of the learning process. Here are some tips for troubleshooting:
Always refer to the Quire API documentation for details about error messages and required parameters. If you encounter an error, read the response message carefully—it often contains hints about what went wrong.
As described in the referenced article, you can also build your own two-way sync solution using n8n and the Quire API.
For a practical example, check out our open-source repository: n8n Quire API. The repository provides a step-by-step guide and a working template, making it easier for you to implement seamless two-way synchronization between your app and Quire.
For a step-by-step guide on how to how to build two-way sync with Quire API, please visit our blog post.
You can now use Quire API with n8n to read and write tasks and use sourceRef
to attach source references or custom metadata. Combine Quire with other APIs to automate and streamline your workflows.
For more examples or if you run into issues, consult the official API documentation or reach out to us at feedback@quire.io. We're here to help!