Projects: Retrieve All

This documentation entry provides a comprehensive guide to using the "Retrieve All" projects endpoint, including all relevant details about the request, response, and data structures.

Endpoint

GET /api/projects/

Retrieve a list of all projects associated with your account.

Request

HTTP Request

GET https://uptimekeep.com/api/projects/

Headers

Header
Type
Description

Authorization

String

Bearer token for API authentication.

Query Parameters

Parameter
Type
Description
Default Value

page

Integer

(Optional) The page number to retrieve.

1

results_per_page

Integer

(Optional) Number of results per page. Allowed values: 10, 25, 50, 100, 250, 500, 1000.

25

Example of a request:

curl --request GET \
--url 'https://uptimekeep.com/api/projects/' \
--header 'Authorization: Bearer {api_key}'

Response

A successful response returns a JSON object with the list of projects and associated metadata.

Response Example

Fields

Data Object

Field
Type
Description

id

Integer

Unique identifier for the project.

name

String

Name of the project.

color

String

Color associated with the project (hex code).

last_datetime

String

Timestamp of the last activity related to the project (in YYYY-MM-DD HH:MM:SS format).

datetime

String

Timestamp when the project was created (in YYYY-MM-DD HH:MM:SS format).

Meta Object

Field
Type
Description

page

Integer

Current page number of the results.

results_per_page

Integer

Number of results per page.

total

Integer

Total number of projects.

total_pages

Integer

Total number of pages available based on the current query.

Links Object

Field
Type
Description

first

String

URL of the first page of results.

last

String

URL of the last page of results.

next

String

URL of the next page of results (if applicable).

prev

String

URL of the previous page of results (if applicable).

self

String

URL of the current page of results.

Errors

If the request fails, the API will return an error message with an appropriate HTTP status code.

Last updated