API ReferenceEndpoints

Matrix

Matrix release and management API

MethodPathDescription
GET/api/v1/matrix/{workspace}List matrices
GET/api/v1/matrix/{workspace}/{matrixId}Get matrix details

List matrices

GET /api/v1/matrix/{workspace}

Retrieve a list of unique matrices deployed in the system

Path Parameters

NameRequiredDescription
workspaceYesWorkspace identifier

Query Parameters

NameRequiredTypeDescription
prefixNostringPrefix to filter matrices (optional - filters by matrix URI prefix)
pageNointeger(int32)Page number (1-indexed)
pageSizeNointeger(int32)Page size

Responses

StatusDescription
200List of matrices retrieved successfully
500Internal server error

Response Shape

FieldTypeDescription
idstring (uuid)Unique identifier for the matrix
uristringURI of the matrix
namestringDisplay name of the matrix
descriptionstringDescription of the matrix
repositoryUrlstringRepository URL for the matrix source code
importsMatrixReference[]Matrices that this matrix imports (dependencies)
importedByMatrixReference[]Matrices that import this matrix (reverse dependencies)
packageInfoPackageSummarySummary of a package installation
createdAtstring (date-time)Timestamp when the matrix was created
updatedAtstring (date-time)Timestamp when the matrix was last updated
prefixDeclarationsPrefixDeclarationResponse[]Prefix declarations owned by this matrix

Example Response

{
  "success": true,
  "data": {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "uri": "string",
    "name": "string",
    "description": "string",
    "repositoryUrl": "string",
    "imports": [
      {
        "id": "550e8400-e29b-41d4-a716-446655440000",
        "uri": "string",
        "name": "string"
      }
    ],
    "importedBy": [
      {
        "id": "550e8400-e29b-41d4-a716-446655440000",
        "uri": "string",
        "name": "string"
      }
    ],
    "packageInfo": {
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "name": "string",
      "currentVersion": "string"
    },
    "createdAt": "2025-03-28T14:22:03Z",
    "updatedAt": "2025-03-28T14:22:03Z",
    "prefixDeclarations": [
      {
        "prefix": "string",
        "namespaceUri": "string"
      }
    ]
  }
}

Example

curl -X GET "https://poliglot.io/api/v1/matrix/my-workspace" \
  -H "Authorization: Bearer <your-token>"

Get matrix details

GET /api/v1/matrix/{workspace}/{matrixId}

Retrieve details for a specific matrix

Path Parameters

NameRequiredDescription
workspaceYesWorkspace identifier
matrixIdYesMatrix ID

Responses

StatusDescription
200Matrix details retrieved successfully
404Matrix not found

Response Shape

FieldTypeDescription
idstring (uuid)Unique identifier for the matrix
uristringURI of the matrix
namestringDisplay name of the matrix
descriptionstringDescription of the matrix
repositoryUrlstringRepository URL for the matrix source code
importsMatrixReference[]Matrices that this matrix imports (dependencies)
importedByMatrixReference[]Matrices that import this matrix (reverse dependencies)
packageInfoPackageSummarySummary of a package installation
createdAtstring (date-time)Timestamp when the matrix was created
updatedAtstring (date-time)Timestamp when the matrix was last updated
prefixDeclarationsPrefixDeclarationResponse[]Prefix declarations owned by this matrix

Example Response

{
  "success": true,
  "data": {
    "id": "550e8400-e29b-41d4-a716-446655440000",
    "uri": "string",
    "name": "string",
    "description": "string",
    "repositoryUrl": "string",
    "imports": [
      {
        "id": "550e8400-e29b-41d4-a716-446655440000",
        "uri": "string",
        "name": "string"
      }
    ],
    "importedBy": [
      {
        "id": "550e8400-e29b-41d4-a716-446655440000",
        "uri": "string",
        "name": "string"
      }
    ],
    "packageInfo": {
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "name": "string",
      "currentVersion": "string"
    },
    "createdAt": "2025-03-28T14:22:03Z",
    "updatedAt": "2025-03-28T14:22:03Z",
    "prefixDeclarations": [
      {
        "prefix": "string",
        "namespaceUri": "string"
      }
    ]
  }
}

Example

curl -X GET "https://poliglot.io/api/v1/matrix/my-workspace/<matrixId>" \
  -H "Authorization: Bearer <your-token>"

On this page