projqoDevelopers

Guide

Getting started

The pieces every call has, and the one header you always send.

The one header you always send

Every call carries a token in the Authorization header, as a bearer token:

HTTP
GET /api/v1/me HTTP/1.1
Host: <your projqo address>
Authorization: Bearer pqt_…

That's the only header every call needs. Calls that send a body also say Content-Type: application/json.

The API takes tokens only. It never reads projqo's sign-in cookie, so a web page can't make a call with someone's session by accident, and any web page may call the API with a token (cross-origin requests are allowed, without cookies).

The parts of a call

  • The organisation is in the path: /api/v1/orgs/{org}/…. Use its id; its address name works too. A token made for one organisation answers 404 on another's path.
  • Lists and creates sit under their parent: /projects/{project}/tasks lists a project's tasks and creates one there.
  • Each item also has a short address of its own: /tasks/{task}, so you only need its id. A task also takes its key: /tasks/WEB-12.
  • Lists across the organisation sit beside them: /tasks?q=… searches every project the person can open.
  • Actions are sub-paths: /tasks/{task}/transitions/{transition}, /tasks/{task}/move, /tasks/{task}/clone, /tasks/{task}/rank.
  • Paths use plural nouns, in lower case with hyphens, and no slash at the end.

Tools

Anything that speaks HTTPS works. The examples on this site use:

  • cURL in a terminal;
  • JavaScript with fetch (Node.js 18 or later, or a browser);
  • Python with the requests library.

Each example reads the token from the environment variable PROJQO_TOKEN, so the token never sits in your code:

cURL
export PROJQO_TOKEN="pqt_…"

Generating a client

Download the OpenAPI description from any page of this site ("Download OpenAPI") and give it to your language's OpenAPI generator. It describes every call, parameter, body and answer, the scopes each call needs, and the webhook events.

Next