Requests and Responses
This page documents the legacy API v0. New integrations should use API v1.
Understand JSON request bodies, TeamGrid response envelopes, server-managed fields, and partial updates.
The TeamGrid API accepts JSON request bodies and returns JSON responses.
Request Format
Section titled “Request Format”Use Content-Type: application/json for requests with a body:
Content-Type: application/jsonAccept: application/jsonExample:
{ "name": "Prepare launch checklist", "projectId": "PROJECT_ID", "plannedTime": 120}For a complete task request example, see Create task.
Response Format
Section titled “Response Format”API responses use JSON. Most successful responses are wrapped in a TeamGrid response envelope:
{ "statusCode": 200, "status": "OK", "info": "Tasks", "data": []}List endpoints such as List tasks return an array in
data. Item endpoints such as Get task return a single
object in data. Some endpoints can return an empty response when no record is
found, depending on the endpoint.
Common response fields include:
_id: TeamGrid document idteamId: team id assigned from the API tokencreatedAt: creation timestampcreatedBy: creator idupdatedAt: last update timestampupdatedBy: last updater id
These fields are managed by TeamGrid. Treat them as read-only unless a specific endpoint explicitly documents otherwise.
Pagination Envelope
Section titled “Pagination Envelope”Paginated list responses include a pagination object:
{ "statusCode": 200, "status": "OK", "info": "Contacts", "data": [], "pagination": { "total": 41, "limit": 50, "page": 1, "pages": 1 }}Server-Assigned Fields
Section titled “Server-Assigned Fields”Do not use request bodies to choose the team for an operation. The API token determines the team.
The following fields are generally server-managed:
_idteamIdcreatedAtcreatedByupdatedAtupdatedBy
Some responses also include calculated fields such as _details, _aggregated,
or _projectSharing. These fields are useful for reading enriched TeamGrid
data, but they should not be treated as stable write inputs.
Partial Updates
Section titled “Partial Updates”Update endpoints accept the fields that should be changed. You do not need to send a full resource unless the endpoint documentation says so.
Example:
{ "completed": true}Character Encoding
Section titled “Character Encoding”Use UTF-8 for request and response bodies.