gospace API
gospace AIDocsConsoleHelp
  • Introduction
  • Authentication
  • Errors
  • Pagination
  • Webhooks
  • Versioning
  • Reference
    • API Reference
      • Directory API
      • Teams API
      • Spatial API
      • Workplace API
Powered by GitBook
On this page

Was this helpful?

  1. Reference
  2. API Reference

Teams API

PreviousDirectory APINextSpatial API

Last updated 6 months ago

Was this helpful?

The Team API is focused on managing teams within a . It offers endpoints to handle the creation, retrieval, updating, and deletion of team records.

division
get

Retrieve a list of teams or a specific team by ID.

Authorizations
Query parameters
team_idstringOptional

Optional ID of the team to retrieve.

include_peoplestring · enumOptional

Optional boolean to populate the people in the team.

Default: falsePossible values:
skipintegerOptional

Number of items to skip.

Default: 0
limitintegerOptional

Maximum number of items to return.

Default: 25
sortstringOptional

Field by which to sort.

orderstring · enumOptional

Sort order, 'asc' or 'desc'.

Default: ascPossible values:
Responses
200
OK
application/json
400
Bad Request
application/json
get
GET /teams/v1/teams HTTP/1.1
Host: api.gospace.app
x-api-key: YOUR_API_KEY
Accept: */*
{
  "success": true,
  "data": {
    "teams": [
      {},
      {}
    ],
    "pagination": {
      "current_results": {
        "from": 1,
        "to": 25
      },
      "total_results": 20
    }
  },
  "identifier": "get_teams_successful"
}