Skip to content
Authenticity

Get Repository Information

GET https://api.copyleaks.com/v3/repositories/repository/{repositoryId}/info

Get repository information such as credit consumption, metadata values and current status. A “Super Admin” or “Admin” role is required.

repositoryId string required

The repository ID to get the info for. The repository ID can be fetched from the Copyleaks Admin Dashboard.

Authorization: Bearer YOUR_LOGIN_TOKEN
200 OK

The command was executed.

Example Response

A typical response from this endpoint:

{
"id": "private-data-hub-id",
"name": "Private Data Hub Name",
"description": "Your Description",
"permission": 4,
"status": 0,
"maxCredits": 1000,
"currentCredits": 1000,
"maskingPolicy": 0,
"creationTime": "2024-09-09T10:43:52"
}
400 Bad Request

Bad Request.

Example Response

A typical response from this endpoint:

{
"repositoryId": [
"The field repositoryId must match the regular expression '^[_A-Za-z0-9]*$'."
]
}
GET https://api.copyleaks.com/v3/repositories/repository/my-repo-123/info
Authorization: Bearer YOUR_LOGIN_TOKEN