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.
Request
Section titled “Request”Path Parameters
Section titled “Path Parameters” repositoryId string Required
The repository ID to get the info for. The repository ID can be fetched from the Copyleaks Admin Dashboard.
Headers
Section titled “Headers”Authorization: Bearer YOUR_LOGIN_TOKEN
Responses
Section titled “Responses” 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"}
Examples
Section titled “Examples”GET https://api.copyleaks.com/v3/repositories/repository/my-repo-123/infoAuthorization: Bearer YOUR_LOGIN_TOKEN
curl --request GET \ --url https://api.copyleaks.com/v3/repositories/repository/my-repo-123/info \ --header 'Authorization: Bearer YOUR_LOGIN_TOKEN'