Connections API
Retrieve a list of connections or a specific connection by ID, with optional filters for entity ID and type.
Optional ID of the connection to retrieve.
Optional ID of an entity to filter connections (e.g., TEAM, PERSON, LABEL, SPACE, ROOM, or ZONE ID).
Optional type of entity to filter connections.
Number of items to skip.
0
Maximum number of items to return.
25
Field by which to sort.
Sort order, 'asc' or 'desc'.
asc
Possible values: GET /connections/v1/connections HTTP/1.1
Host: api.gospace.app
x-api-key: YOUR_API_KEY
Accept: */*
{
"success": true,
"data": {
"connections": [
{
"_id": "random-id-1",
"strength": -50,
"connection_from_entity": {
"connection_entity_id": "random-id-2",
"connection_entity_type": "PERSON",
"connection_entity_data": {
"first_name": "Christian",
"last_name": "Marca",
"email": "[email protected]",
"person_id": "random-id-2"
}
},
"connection_to_entity": {
"connection_entity_id": "random-id-3",
"connection_entity_type": "TEAM",
"connection_entity_data": {
"team_name": "Accounting",
"team_id": "random-id-3"
}
}
},
{
"_id": "random-id-4",
"strength": 75,
"connection_from_entity": {
"connection_entity_id": "random-id-5",
"connection_entity_type": "TEAM",
"connection_entity_data": {
"team_name": "Planning",
"team_id": "random-id-5"
}
},
"connection_to_entity": {
"connection_entity_id": "random-id-6",
"connection_entity_type": "ROOM",
"connection_entity_data": {
"room_name": "Conference Room A",
"room_id": "random-id-6"
}
}
}
],
"pagination": {
"current_results": {
"from": 1,
"to": 25
},
"total_results": 20
}
},
"identifier": "get_connections_successful"
}
Create multiple new connections.
POST /connections/v1/connections HTTP/1.1
Host: api.gospace.app
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 791
{
"connections": [
{
"strength": -50,
"connection_from_entity": {
"connection_entity_id": "random-id-2",
"connection_entity_type": "PERSON",
"connection_entity_data": {
"first_name": "Christian",
"last_name": "Marca",
"email": "[email protected]",
"person_id": "random-id-2"
}
},
"connection_to_entity": {
"connection_entity_id": "random-id-3",
"connection_entity_type": "TEAM",
"connection_entity_data": {
"team_name": "Accounting",
"team_id": "random-id-3"
}
}
},
{
"strength": 75,
"connection_from_entity": {
"connection_entity_id": "random-id-5",
"connection_entity_type": "TEAM",
"connection_entity_data": {
"team_name": "Planning",
"team_id": "random-id-5"
}
},
"connection_to_entity": {
"connection_entity_id": "random-id-6",
"connection_entity_type": "ROOM",
"connection_entity_data": {
"room_name": "Conference Room A",
"room_id": "random-id-6"
}
}
}
]
}
{
"success": true,
"data": {
"connections": [
{
"_id": "random-id-1",
"strength": -50,
"connection_from_entity": {
"connection_entity_id": "random-id-2",
"connection_entity_type": "PERSON",
"connection_entity_data": {
"first_name": "Christian",
"last_name": "Marca",
"email": "[email protected]",
"person_id": "random-id-2"
}
},
"connection_to_entity": {
"connection_entity_id": "random-id-3",
"connection_entity_type": "TEAM",
"connection_entity_data": {
"team_name": "Accounting",
"team_id": "random-id-3"
}
}
},
{
"_id": "random-id-4",
"strength": 75,
"connection_from_entity": {
"connection_entity_id": "random-id-5",
"connection_entity_type": "TEAM",
"connection_entity_data": {
"team_name": "Planning",
"team_id": "random-id-5"
}
},
"connection_to_entity": {
"connection_entity_id": "random-id-6",
"connection_entity_type": "ROOM",
"connection_entity_data": {
"room_name": "Conference Room A",
"room_id": "random-id-6"
}
}
}
]
},
"identifier": "create_connections_successful"
}
Update multiple existing connections.
PUT /connections/v1/connections HTTP/1.1
Host: api.gospace.app
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 855
{
"connections": [
{
"_id": "random-id-1",
"strength": -40,
"connection_from_entity": {
"connection_entity_id": "random-id-2",
"connection_entity_type": "PERSON",
"connection_entity_data": {
"first_name": "Christian",
"last_name": "Marca",
"email": "[email protected]",
"person_id": "random-id-2"
}
},
"connection_to_entity": {
"connection_entity_id": "random-id-3",
"connection_entity_type": "TEAM",
"connection_entity_data": {
"team_name": "Accounting Updated",
"team_id": "random-id-3"
}
}
},
{
"_id": "random-id-4",
"strength": 80,
"connection_from_entity": {
"connection_entity_id": "random-id-5",
"connection_entity_type": "TEAM",
"connection_entity_data": {
"team_name": "Planning Updated",
"team_id": "random-id-5"
}
},
"connection_to_entity": {
"connection_entity_id": "random-id-6",
"connection_entity_type": "ROOM",
"connection_entity_data": {
"room_name": "Conference Room A Updated",
"room_id": "random-id-6"
}
}
}
]
}
{
"success": true,
"data": {
"connections": [
{
"_id": "random-id-1",
"strength": -40,
"connection_from_entity": {
"connection_entity_id": "random-id-2",
"connection_entity_type": "PERSON",
"connection_entity_data": {
"first_name": "Christian",
"last_name": "Marca",
"email": "[email protected]",
"person_id": "random-id-2"
}
},
"connection_to_entity": {
"connection_entity_id": "random-id-3",
"connection_entity_type": "TEAM",
"connection_entity_data": {
"team_name": "Accounting Updated",
"team_id": "random-id-3"
}
}
},
{
"_id": "random-id-4",
"strength": 80,
"connection_from_entity": {
"connection_entity_id": "random-id-5",
"connection_entity_type": "TEAM",
"connection_entity_data": {
"team_name": "Planning Updated",
"team_id": "random-id-5"
}
},
"connection_to_entity": {
"connection_entity_id": "random-id-6",
"connection_entity_type": "ROOM",
"connection_entity_data": {
"room_name": "Conference Room A Updated",
"room_id": "random-id-6"
}
}
}
]
},
"identifier": "update_connections_successful"
}
Delete multiple connections by their IDs.
List of connection IDs to delete.
POST /connections/v1/connections/delete HTTP/1.1
Host: api.gospace.app
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 48
{
"connection_ids": [
"random-id-1",
"random-id-4"
]
}
{
"success": true,
"data": {
"connection_ids": [
"random-id-1",
"random-id-4"
]
},
"identifier": "delete_connections_successful"
}
Retrieve a list of labels or a specific label by ID.
Optional ID of the label to retrieve.
Number of items to skip.
0
Maximum number of items to return.
25
Field by which to sort.
Sort order, 'asc' or 'desc'.
asc
Possible values: GET /connections/v1/labels HTTP/1.1
Host: api.gospace.app
x-api-key: YOUR_API_KEY
Accept: */*
{
"success": true,
"data": {
"labels": [
{
"_id": "random-id-7",
"name": "Label A",
"type": "category",
"details": {
"color": "blue",
"description": "Primary category"
}
},
{
"_id": "random-id-8",
"name": "Label B",
"type": "tag",
"details": {
"color": "green",
"description": "Secondary tag"
}
}
],
"pagination": {
"current_results": {
"from": 1,
"to": 25
},
"total_results": 20
}
},
"identifier": "get_labels_successful"
}
Create multiple new labels.
POST /connections/v1/labels HTTP/1.1
Host: api.gospace.app
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 199
{
"labels": [
{
"name": "Label A",
"type": "category",
"details": {
"color": "blue",
"description": "Primary category"
}
},
{
"name": "Label B",
"type": "tag",
"details": {
"color": "green",
"description": "Secondary tag"
}
}
]
}
{
"success": true,
"data": {
"labels": [
{
"_id": "random-id-7",
"name": "Label A",
"type": "category",
"details": {
"color": "blue",
"description": "Primary category"
}
},
{
"_id": "random-id-8",
"name": "Label B",
"type": "tag",
"details": {
"color": "green",
"description": "Secondary tag"
}
}
]
},
"identifier": "create_labels_successful"
}
Update multiple existing labels.
PUT /connections/v1/labels HTTP/1.1
Host: api.gospace.app
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 271
{
"labels": [
{
"_id": "random-id-7",
"name": "Label A Updated",
"type": "category",
"details": {
"color": "red",
"description": "Updated primary category"
}
},
{
"_id": "random-id-8",
"name": "Label B Updated",
"type": "tag",
"details": {
"color": "yellow",
"description": "Updated secondary tag"
}
}
]
}
{
"success": true,
"data": {
"labels": [
{
"_id": "random-id-7",
"name": "Label A Updated",
"type": "category",
"details": {
"color": "red",
"description": "Updated primary category"
}
},
{
"_id": "random-id-8",
"name": "Label B Updated",
"type": "tag",
"details": {
"color": "yellow",
"description": "Updated secondary tag"
}
}
]
},
"identifier": "update_labels_successful"
}
Delete multiple labels by their IDs.
List of label IDs to delete.
POST /connections/v1/labels/delete HTTP/1.1
Host: api.gospace.app
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 43
{
"label_ids": [
"random-id-7",
"random-id-8"
]
}
{
"success": true,
"data": {
"label_ids": [
"random-id-7",
"random-id-8"
]
},
"identifier": "delete_labels_successful"
}
Retrieve a list of label mappings or a specific mapping by ID, with optional filters for label ID, entity ID, and entity type.
Optional ID of the mapping to retrieve.
Optional ID of a label to filter mappings.
Optional ID of an entity to filter mappings (e.g., TEAM, PERSON, LABEL, SPACE, ROOM, or ZONE ID).
Optional type of entity to filter mappings.
Number of items to skip.
0
Maximum number of items to return.
25
Field by which to sort.
Sort order, 'asc' or 'desc'.
asc
Possible values: GET /connections/v1/labels/mapping HTTP/1.1
Host: api.gospace.app
x-api-key: YOUR_API_KEY
Accept: */*
{
"success": true,
"data": {
"mappings": [
{
"_id": "random-id-9",
"label_id": "random-id-7",
"entity_id": "random-id-2",
"entity_type": "PERSON",
"details": {
"applied_at": "2025-07-18T12:00:00Z"
}
},
{
"_id": "random-id-10",
"label_id": "random-id-8",
"entity_id": "random-id-3",
"entity_type": "TEAM",
"details": {
"applied_at": "2025-07-18T12:01:00Z"
}
}
],
"pagination": {
"current_results": {
"from": 1,
"to": 25
},
"total_results": 20
}
},
"identifier": "get_mappings_successful"
}
Create multiple new label mappings.
POST /connections/v1/labels/mapping HTTP/1.1
Host: api.gospace.app
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 260
{
"mappings": [
{
"label_id": "random-id-7",
"entity_id": "random-id-2",
"entity_type": "PERSON",
"details": {
"applied_at": "2025-07-18T12:00:00Z"
}
},
{
"label_id": "random-id-8",
"entity_id": "random-id-3",
"entity_type": "TEAM",
"details": {
"applied_at": "2025-07-18T12:01:00Z"
}
}
]
}
{
"success": true,
"data": {
"mappings": [
{
"_id": "random-id-9",
"label_id": "random-id-7",
"entity_id": "random-id-2",
"entity_type": "PERSON",
"details": {
"applied_at": "2025-07-18T12:00:00Z"
}
},
{
"_id": "random-id-10",
"label_id": "random-id-8",
"entity_id": "random-id-3",
"entity_type": "TEAM",
"details": {
"applied_at": "2025-07-18T12:01:00Z"
}
}
]
},
"identifier": "create_mappings_successful"
}
Update multiple existing label mappings.
PUT /connections/v1/labels/mapping HTTP/1.1
Host: api.gospace.app
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 301
{
"mappings": [
{
"_id": "random-id-9",
"label_id": "random-id-7",
"entity_id": "random-id-2",
"entity_type": "PERSON",
"details": {
"applied_at": "2025-07-18T12:02:00Z"
}
},
{
"_id": "random-id-10",
"label_id": "random-id-8",
"entity_id": "random-id-3",
"entity_type": "TEAM",
"details": {
"applied_at": "2025-07-18T12:03:00Z"
}
}
]
}
{
"success": true,
"data": {
"mappings": [
{
"_id": "random-id-9",
"label_id": "random-id-7",
"entity_id": "random-id-2",
"entity_type": "PERSON",
"details": {
"applied_at": "2025-07-18T12:02:00Z"
}
},
{
"_id": "random-id-10",
"label_id": "random-id-8",
"entity_id": "random-id-3",
"entity_type": "TEAM",
"details": {
"applied_at": "2025-07-18T12:03:00Z"
}
}
]
},
"identifier": "update_mappings_successful"
}
Delete multiple label mappings by their IDs.
List of mapping IDs to delete.
POST /connections/v1/labels/mapping/delete HTTP/1.1
Host: api.gospace.app
x-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 46
{
"mapping_ids": [
"random-id-9",
"random-id-10"
]
}
{
"success": true,
"data": {
"mapping_ids": [
"random-id-9",
"random-id-10"
]
},
"identifier": "delete_mappings_successful"
}
Last updated
Was this helpful?