List accessible projects
const url = 'https://testperch.com/api/public/v1/projects?first=50';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://testperch.com/api/public/v1/projects?first=50' \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Opaque forward-pagination cursor containing the project ID.
Opaque forward-pagination cursor containing the project ID.
Number of projects to return (maximum 100).
Number of projects to return (maximum 100).
Responses
Section titled “Responses”A forward page of projects visible to this credential.
object
object
object
object
Forward-pagination state for the returned page.
object
Opaque cursor for the last returned edge, or null when the page is empty.
Whether another forward page is available after end_cursor.
Example generated
{ "edges": [ { "cursor": "example", "node": { "id": "example", "name": "example", "slug": "example", "web_url": "https://example.com", "workspace": { "id": "example", "name": "example", "slug": "example" } } } ], "page_info": { "end_cursor": "example", "has_next_page": true }}Invalid parameters, query, or cursor.
object
object
object
Example
{ "error": { "code": "invalid_request" }}Missing or invalid OAuth bearer token or API key.
object
object
object
Example
{ "error": { "code": "invalid_request" }}The project workspace does not have product access.
object
object
object
Example
{ "error": { "code": "invalid_request" }}The credential lacks the required permission; configuration writes require a Read + write project key.
object
object
object
Example
{ "error": { "code": "invalid_request" }}Configuration conflicts with an existing resource or integration requirements.
object
object
object
Example
{ "error": { "code": "invalid_request" }}Credential or workspace rate limit exceeded.
object
object
object
Example
{ "error": { "code": "invalid_request" }}Headers
Section titled “Headers”Seconds before retrying.
Seconds before retrying.
Internal server error.
object
object
object
Example
{ "error": { "code": "invalid_request" }}