Directory API
Retrieve people by filters or identifiers.
Optional ID of the person to retrieve.
Optional external ID to filter people.
Optional email to filter people.
Optional first name to filter people.
Optional last name to filter people.
Number of items to skip for pagination.
0Maximum number of items to return.
25Field to sort by.
Sort order, 'asc' or 'desc'.
ascPossible values: Optional configuration/scenario key. When omitted, the default configuration is used (configuration_id is null).
OK
Bad Request
GET /directory/v1/people HTTP/1.1
Host: api.gospace.app
x-api-key: YOUR_API_KEY
Accept: */*
{
"success": true,
"data": {
"people": [
{
"_id": "text",
"people_id": "text",
"first_name": "text",
"last_name": "text",
"email": "text",
"country": "text",
"default_location": {
"location_id": "text",
"location_name": "text"
},
"default_team": {
"team_id": "text",
"team_name": "text",
"assigned_at": "2026-01-01T00:00:00.000Z",
"type": "text"
},
"default_preferences": [
{
"label_id": "text",
"label_name": "text"
}
],
"linked_locations": [
"text"
],
"priority_locations": [
{
"location_id": "text",
"location_name": "text"
}
],
"external_ids": [
"text"
],
"teams": [
{
"team_id": "text",
"team_name": "text",
"assigned_at": "2026-01-01T00:00:00.000Z",
"type": "text"
}
],
"settings": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"override_settings": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"default_connection": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"ANY_ADDITIONAL_PROPERTY": "anything"
}
]
},
"pagination": {
"current_results": {
"from": 1,
"to": 1
},
"total_results": 1
},
"identifier": "text"
}Create multiple people in a single request.
Optional configuration/scenario key. When omitted, the default configuration is used (configuration_id is null).
OK
Bad Request
POST /directory/v1/people HTTP/1.1
Host: api.gospace.app
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 444
{
"people": [
{
"email": "text",
"first_name": "text",
"last_name": "text",
"country": "text",
"external_ids": [
"text"
],
"default_location": "text",
"default_team": "text",
"default_preferences": [
"text"
],
"priority_locations": [
"text"
],
"preferences": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"personal_settings": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"teams": [
"text"
],
"address": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"coords": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}
]
}{
"success": true,
"data": [
{
"_id": "text",
"people_id": "text",
"first_name": "text",
"last_name": "text",
"email": "text",
"country": "text",
"default_location": {
"location_id": "text",
"location_name": "text"
},
"default_team": {
"team_id": "text",
"team_name": "text",
"assigned_at": "2026-01-01T00:00:00.000Z",
"type": "text"
},
"default_preferences": [
{
"label_id": "text",
"label_name": "text"
}
],
"linked_locations": [
"text"
],
"priority_locations": [
{
"location_id": "text",
"location_name": "text"
}
],
"external_ids": [
"text"
],
"teams": [
{
"team_id": "text",
"team_name": "text",
"assigned_at": "2026-01-01T00:00:00.000Z",
"type": "text"
}
],
"settings": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"override_settings": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"default_connection": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"ANY_ADDITIONAL_PROPERTY": "anything"
}
],
"identifier": "text"
}Update multiple existing people by their IDs.
Optional configuration/scenario key. When omitted, the default configuration is used (configuration_id is null).
OK
Bad Request
PUT /directory/v1/people HTTP/1.1
Host: api.gospace.app
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 632
{
"people": [
{
"people_id": "text",
"email": "text",
"first_name": "text",
"last_name": "text",
"country": "text",
"external_ids": [
"text"
],
"default_location": "text",
"default_team": "text",
"default_preferences": [
"text"
],
"priority_locations": [
"text"
],
"preferences": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"personal_settings": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"teams": [
"text"
],
"address": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"coords": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"settings": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"override_settings": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"default_connection": {
"ANY_ADDITIONAL_PROPERTY": "anything"
}
}
]
}{
"success": true,
"data": [
{
"_id": "text",
"people_id": "text",
"first_name": "text",
"last_name": "text",
"email": "text",
"country": "text",
"default_location": {
"location_id": "text",
"location_name": "text"
},
"default_team": {
"team_id": "text",
"team_name": "text",
"assigned_at": "2026-01-01T00:00:00.000Z",
"type": "text"
},
"default_preferences": [
{
"label_id": "text",
"label_name": "text"
}
],
"linked_locations": [
"text"
],
"priority_locations": [
{
"location_id": "text",
"location_name": "text"
}
],
"external_ids": [
"text"
],
"teams": [
{
"team_id": "text",
"team_name": "text",
"assigned_at": "2026-01-01T00:00:00.000Z",
"type": "text"
}
],
"settings": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"override_settings": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"default_connection": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"ANY_ADDITIONAL_PROPERTY": "anything"
}
],
"identifier": "text"
}Delete multiple people by their IDs.
Optional configuration/scenario key. When omitted, the default configuration is used (configuration_id is null).
OK
Bad Request
DELETE /directory/v1/people HTTP/1.1
Host: api.gospace.app
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 33
{
"people": [
{
"people_id": "text"
}
]
}{
"success": true,
"data": {
"deleted_people": [
"text"
],
"master_user_not_deleted": "text"
},
"identifier": "text"
}Retrieve teams with optional filters.
Whether to include team members in the response.
falsePossible values: 025ascPossible values: Optional configuration/scenario key. When omitted, the default configuration is used (configuration_id is null).
OK
Bad Request
GET /directory/v1/teams HTTP/1.1
Host: api.gospace.app
x-api-key: YOUR_API_KEY
Accept: */*
{
"success": true,
"data": {
"teams": [
{
"_id": "text",
"team_id": "text",
"name": "text",
"color": "text",
"default_location": {
"location_id": "text",
"location_name": "text"
},
"team_type": "text",
"linked_locations": [
"text"
],
"hierarchy": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"external_id": "text",
"people": [
{
"_id": "text",
"people_id": "text",
"first_name": "text",
"last_name": "text",
"email": "text",
"external_ids": [
"text"
],
"ANY_ADDITIONAL_PROPERTY": "anything"
}
],
"total_people": 1,
"ANY_ADDITIONAL_PROPERTY": "anything"
}
]
},
"pagination": {
"current_results": {
"from": 1,
"to": 1
},
"total_results": 1
},
"identifier": "text"
}Create multiple teams in a single request.
Optional configuration/scenario key. When omitted, the default configuration is used (configuration_id is null).
OK
Bad Request
POST /directory/v1/teams HTTP/1.1
Host: api.gospace.app
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 161
{
"teams": [
{
"name": "text",
"color": "text",
"default_location": {
"location_id": "text",
"location_name": "text"
},
"external_id": "text",
"members": [
{
"people_id": "text"
}
]
}
]
}{
"success": true,
"data": [
{
"_id": "text",
"team_id": "text",
"name": "text",
"color": "text",
"default_location": {
"location_id": "text",
"location_name": "text"
},
"team_type": "text",
"linked_locations": [
"text"
],
"hierarchy": {
"ANY_ADDITIONAL_PROPERTY": "anything"
},
"external_id": "text",
"people": [
{
"_id": "text",
"people_id": "text",
"first_name": "text",
"last_name": "text",
"email": "text",
"external_ids": [
"text"
],
"ANY_ADDITIONAL_PROPERTY": "anything"
}
],
"total_people": 1,
"ANY_ADDITIONAL_PROPERTY": "anything"
}
],
"identifier": "text"
}Update multiple existing teams by their IDs.
Optional configuration/scenario key. When omitted, the default configuration is used (configuration_id is null).
OK
Bad Request
PUT /directory/v1/teams HTTP/1.1
Host: api.gospace.app
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 145
{
"teams": [
{
"team_id": "text",
"name": "text",
"color": "text",
"default_location": {
"location_id": "text",
"location_name": "text"
},
"external_id": "text"
}
]
}{
"success": true,
"data": [
{
"_id": "text",
"team_id": "text",
"name": "text",
"color": "text",
"default_location": {
"location_id": "text",
"location_name": "text"
},
"external_id": "text"
}
],
"identifier": "text"
}Delete multiple teams by their IDs.
Optional configuration/scenario key. When omitted, the default configuration is used (configuration_id is null).
OK
Bad Request
DELETE /directory/v1/teams HTTP/1.1
Host: api.gospace.app
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 30
{
"teams": [
{
"team_id": "text"
}
]
}{
"success": true,
"data": {
"deleted_teams": [
"text"
]
},
"identifier": "text"
}Retrieve team members with optional filters.
025first_nameascPossible values: Optional configuration/scenario key. When omitted, the default configuration is used (configuration_id is null).
OK
Bad Request
GET /directory/v1/teams/{team_id}/members HTTP/1.1
Host: api.gospace.app
x-api-key: YOUR_API_KEY
Accept: */*
{
"success": true,
"data": {
"members": [
{
"_id": "text",
"people_id": "text",
"first_name": "text",
"last_name": "text",
"email": "text",
"external_ids": [
"text"
],
"ANY_ADDITIONAL_PROPERTY": "anything"
}
]
},
"pagination": {
"current_results": {
"from": 1,
"to": 1
},
"total_results": 1
},
"identifier": "text"
}Add members to a team.
Optional configuration/scenario key. When omitted, the default configuration is used (configuration_id is null).
OK
Bad Request
PUT /directory/v1/teams/{team_id}/members HTTP/1.1
Host: api.gospace.app
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 34
{
"members": [
{
"people_id": "text"
}
]
}{
"success": true,
"data": {
"members_added": [
"text"
]
},
"identifier": "text"
}Remove members from a team.
Optional configuration/scenario key. When omitted, the default configuration is used (configuration_id is null).
OK
Bad Request
DELETE /directory/v1/teams/{team_id}/members HTTP/1.1
Host: api.gospace.app
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 34
{
"members": [
{
"people_id": "text"
}
]
}{
"success": true,
"data": {
"members_removed": [
"text"
]
},
"identifier": "text"
}Last updated