The ID of the team to fetch.
The list of errors, if any.
The request ID for tracking.
The data payload of the response.
const response = await fetch('https://api.usepylon.com/teams/{id}', { method: 'GET', headers: {}, }); const data = await response.json();
{ "data": { "id": "text", "name": "text", "users": [ { "id": "text" } ] }, "errors": [ "text" ], "pagination": { "cursor": "text", "has_next_page": false }, "request_id": "text" }
const response = await fetch('https://api.usepylon.com/teams', { method: 'GET', headers: {}, }); const data = await response.json();
{ "data": [ { "id": "text", "name": "text", "users": [ { "id": "text" } ] } ], "errors": [ "text" ], "pagination": { "cursor": "text", "has_next_page": false }, "request_id": "text" }