The Plane API is organized around REST. Our API has predictable resource-oriented URLs, accepts application/json request bodies, returns JSON responses, and uses standard HTTP response codes, authentication, and verbs.
X-API-Key
header.
Add personal access token
.
X-API-Key
header is not included, the API will return an error indicating that authentication is required.Verb | Description | Example |
---|---|---|
GET | Requests a representation of the specified resource | Fetch all issues from a project |
POST | Submits an entity to the specified resource | Create a project |
DELETE | Deletes the specified resource | Delete a module-issue |
PATCH | Applies partial modifications to a resource | Edit a module |
Status Code | Description |
---|---|
200 OK | The request succeeded, and a new resource was created, generally sent in GET or PATCH requests. |
201 Created | The request is succeeded, and a new resource was created, generally sent in POST or PATCH requests. |
204 No Content | The request is succeeded, and no body is sent, generally comes from the DELETE request. |
Status Code | Description |
---|---|
400 Bad Request | The server cannot or will not process the request due to something that is perceived to be a client error. |
401 Unauthorized | Although the HTTP standard specifies “unauthorized”, semantically, this response means “unauthenticated”. That is, the client must authenticate itself to get the requested response. |
404 Not Found | The server cannot find the requested resource. This means the URL is not recognized. |
429 Throttling Error | The server is processing too many requests at once and is unable to process your request. Retry the request after some time. You can read our rate-limit doc. |
500 Internal Server Error | The server has encountered a situation it does not know how to handle. |
502 Bad Gateway | This error response means that the server got an invalid response while working as a gateway to get a response needed to handle the request. |
503 Service Unavailable | The server is not ready to handle the request. Common causes are a server that is down for maintenance or is overloaded. |
504 Gateway Timeout | This error response is given when the server acts as a gateway and cannot get a timely response. |
value:offset:is_prev
, where:
value
represents the page size (number of items per page).offset
is the current page number (starting from 0).is_prev
indicates whether the cursor is moving to the previous page (1
) or to the next page (0
).per_page
(optional): Number of items to display per page. Defaults to 100. The maximum allowed value specified by the server is 100.cursor
(optional): Cursor string to navigate to a specific page. If not provided, pagination starts from the first page.next_cursor
: Cursor string for the next page.prev_cursor
: Cursor string for the previous page.next_page_results
: Boolean indicating if there are more results after the current page.prev_page_results
: Boolean indicating if there are results before the current page.count
: Total number of items on the current page.total_pages
: Estimated total number of pages.total_results
: Total number of items across all pages.extra_stats
: Additional statistics, if any.results
: Array of items for the current page.per_page
limit will receive an error response detailing the maximum allowed value.X-RateLimit-Remaining
: The number of requests remaining in the current rate limit window.X-RateLimit-Reset
: The time at which the current rate limit window resets (in UTC epoch seconds).fields
parameter accepts a comma-separated list of field names that the client wants to be included in the response.?fields=field1,field2,field3
id
, name
, and description
fields of the resource.
expand
parameter can be used to include details of related resources or nested objects in the response.?expand=field1,field2
assignees
and state
.
fields
parameter will result in an error response, indicating which fields are invalid.expand
is used on fields that cannot be expanded, an appropriate error message will be returned.
import from “fs”