Skip to main content
GET
https://sandbox.getcollate.io/api
/
v1
/
apiCollections
/
{id}
GET /v1/apiCollections/{id}
from metadata.sdk import configure
from metadata.sdk.entities import APICollections

configure(
    host="https://your-company.getcollate.io/api",
    jwt_token="your-jwt-token"
)

# Get by ID
ac = APICollections.retrieve("0f7ee81c-8163-4097-8adb-45c3d6c7b14b")
print(f"{ac.fullyQualifiedName}: {ac.description}")

# Get by ID with fields
ac = APICollections.retrieve(
    "0f7ee81c-8163-4097-8adb-45c3d6c7b14b",
    fields=["owners", "tags"]
)

# Get by fully qualified name
ac = APICollections.retrieve_by_name("sample_api_service.pet")

# Get by name with fields
ac = APICollections.retrieve_by_name(
    "sample_api_service.pet",
    fields=["owners", "tags", "domain"]
)
{
  "id": "0f7ee81c-8163-4097-8adb-45c3d6c7b14b",
  "name": "pet",
  "fullyQualifiedName": "sample_api_service.pet",
  "version": 0.1,
  "updatedAt": 1769982733673,
  "updatedBy": "admin",
  "endpointURL": "https://petstore3.swagger.io/#/pet",
  "href": "http://localhost:8585/api/v1/apiCollections/0f7ee81c-8163-4097-8adb-45c3d6c7b14b",
  "owners": [],
  "tags": [],
  "service": {
    "id": "58d413a8-abc3-4a6d-bd8a-13a0234b1ff8",
    "type": "apiService",
    "name": "sample_api_service",
    "fullyQualifiedName": "sample_api_service",
    "deleted": false
  },
  "serviceType": "Rest",
  "deleted": false,
  "domains": []
}

Retrieve an API Collection

Get a single API collection by its unique ID or fully qualified name.

Get by ID

id
string
required
UUID of the API collection to retrieve.
fields
string
Comma-separated list of fields to include (e.g., owners,tags,extension,domains,sourceHash).
include
string
default:"non-deleted"
Include all, deleted, or non-deleted entities.

Get by Fully Qualified Name

Use GET /v1/apiCollections/name/{fqn} to retrieve by fully qualified name.
fqn
string
required
Fully qualified name of the API collection (e.g., sample_api_service.pet).
fields
string
Comma-separated list of fields to include: owners, tags, extension, domains, sourceHash.
include
string
default:"non-deleted"
Include all, deleted, or non-deleted entities.
GET /v1/apiCollections/{id}
from metadata.sdk import configure
from metadata.sdk.entities import APICollections

configure(
    host="https://your-company.getcollate.io/api",
    jwt_token="your-jwt-token"
)

# Get by ID
ac = APICollections.retrieve("0f7ee81c-8163-4097-8adb-45c3d6c7b14b")
print(f"{ac.fullyQualifiedName}: {ac.description}")

# Get by ID with fields
ac = APICollections.retrieve(
    "0f7ee81c-8163-4097-8adb-45c3d6c7b14b",
    fields=["owners", "tags"]
)

# Get by fully qualified name
ac = APICollections.retrieve_by_name("sample_api_service.pet")

# Get by name with fields
ac = APICollections.retrieve_by_name(
    "sample_api_service.pet",
    fields=["owners", "tags", "domain"]
)
{
  "id": "0f7ee81c-8163-4097-8adb-45c3d6c7b14b",
  "name": "pet",
  "fullyQualifiedName": "sample_api_service.pet",
  "version": 0.1,
  "updatedAt": 1769982733673,
  "updatedBy": "admin",
  "endpointURL": "https://petstore3.swagger.io/#/pet",
  "href": "http://localhost:8585/api/v1/apiCollections/0f7ee81c-8163-4097-8adb-45c3d6c7b14b",
  "owners": [],
  "tags": [],
  "service": {
    "id": "58d413a8-abc3-4a6d-bd8a-13a0234b1ff8",
    "type": "apiService",
    "name": "sample_api_service",
    "fullyQualifiedName": "sample_api_service",
    "deleted": false
  },
  "serviceType": "Rest",
  "deleted": false,
  "domains": []
}

Returns

Returns an API collection object with all requested fields populated.

Response

id
string
Unique identifier for the API collection (UUID format).
name
string
API collection name.
fullyQualifiedName
string
Fully qualified name in format service.collectionName.
displayName
string
Human-readable display name.
description
string
Description of the API collection in Markdown format.
endpointURL
string
Base URL for the API collection.
service
object
Reference to the parent API service.
serviceType
string
Type of API service (e.g., Rest).
version
number
Version number for the entity.
owners
array
List of owners. Only included when fields contains owners.
tags
array
Classification tags. Only included when fields contains tags.
domains
array
Domain assignments. Only included when fields contains domains.

Error Handling

CodeError TypeDescription
401UNAUTHORIZEDInvalid or missing authentication token
403FORBIDDENUser lacks permission to view this API collection
404NOT_FOUNDAPI collection with given ID or FQN does not exist