Directory API
Retrieve a list of people or a specific person by ID, with optional filters for email, first name, last name, or external ID.
Optional ID of the person to retrieve.
Optional email to filter people.
Optional first name to filter people.
Optional last name to filter people.
Optional external ID to filter people.
Number of items to skip for pagination.
0
Maximum number of items to return.
25
Field to sort by (e.g., email, first_name, last_name, external_id).
Sort order, 'asc' or 'desc'.
asc
Possible values: 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": [
{
"people_id": "text",
"email": "text",
"first_name": "text",
"last_name": "text",
"external_id": "text"
}
],
"pagination": {
"current_results": {
"from": 1,
"to": 1
},
"total_results": 1
}
},
"identifier": "text"
}
Create multiple new people in a single request.
Created
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: 89
{
"people": [
{
"email": "text",
"first_name": "text",
"last_name": "text",
"external_id": "text"
}
]
}
{
"success": true,
"data": {
"people": [
{
"people_id": "text",
"email": "text",
"first_name": "text",
"last_name": "text",
"external_id": "text"
}
]
},
"identifier": "text"
}
Update multiple existing people by their IDs.
OK
Bad Request
Not Found
PUT /directory/v1/people HTTP/1.1
Host: api.gospace.app
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 108
{
"people": [
{
"people_id": "text",
"email": "text",
"first_name": "text",
"last_name": "text",
"external_id": "text"
}
]
}
{
"success": true,
"data": {
"people": [
{
"people_id": "text",
"email": "text",
"first_name": "text",
"last_name": "text",
"external_id": "text"
}
]
},
"identifier": "text"
}
Delete multiple people by their IDs.
OK
Bad Request
Not Found
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": {
"people": [
{
"people_id": "text"
}
]
},
"identifier": "text"
}
Retrieve a list of teams or a specific team by ID, with optional filters for team name or external ID.
Optional ID of the team to retrieve.
Optional team name to filter teams.
Optional external ID to filter teams.
Number of items to skip for pagination.
0
Maximum number of items to return.
25
Field to sort by (e.g., team_name, external_id).
Sort order, 'asc' or 'desc'.
asc
Possible values: Return total_members count and the first 10 members
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": [
{
"team_id": "text",
"name": "text",
"external_id": "text"
}
],
"pagination": {
"current_results": {
"from": 1,
"to": 1
},
"total_results": 1
}
},
"identifier": "text"
}
Create multiple new teams in a single request.
Created
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: 48
{
"teams": [
{
"name": "text",
"external_id": "text"
}
]
}
{
"success": true,
"data": {
"teams": [
{
"team_id": "text",
"name": "text",
"external_id": "text"
}
]
},
"identifier": "text"
}
Update multiple existing teams by their IDs.
OK
Bad Request
Not Found
PUT /directory/v1/teams HTTP/1.1
Host: api.gospace.app
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 65
{
"teams": [
{
"team_id": "text",
"name": "text",
"external_id": "text"
}
]
}
{
"success": true,
"data": {
"teams": [
{
"team_id": "text",
"name": "text",
"external_id": "text"
}
]
},
"identifier": "text"
}
Delete multiple teams by their IDs.
OK
Bad Request
Not Found
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": {
"teams": [
{
"team_id": "text"
}
]
},
"identifier": "text"
}
Retrieve a list of team members, with optional filters for team ID, person ID, or external ID.
The team ID to query
Number of items to skip for pagination.
0
Maximum number of items to return.
25
Field to sort by (e.g., team_id, people_id).
Sort order, 'asc' or 'desc'.
asc
Possible values: Unique identifier of the members to filter
Email of the members to filter
First name of the members to filter
Last name of the members to filter
External identifier of the members to filter
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": [
{
"people_id": "text",
"first_name": "text",
"last_name": "text",
"email": "text",
"external_id": "text"
}
],
"pagination": {
"current_results": {
"from": 1,
"to": 1
},
"total_results": 1
}
},
"identifier": "text"
}
Add multiple members to teams in a single request.
Created
Bad Request
Not Found
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 multiple members from teams.
OK
Bad Request
Not Found
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": [
"text"
]
},
"identifier": "text"
}
Last updated
Was this helpful?