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

Directory API

PreviousAPI ReferenceNextTeams API

Last updated 6 months ago

Was this helpful?

The Directory API is designed to manage individual people records within a . It provides endpoints to create, retrieve, update, and delete people.

division
get

Retrieve a list of people or a specific person by ID.

Authorizations
Query parameters
people_idstringOptional

Optional ID of the person to retrieve.

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'.

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