Get the CLA list for a repository¶
GET /api/v5/repos/{owner}/{repo}/clas
This endpoint returns the list of CLAs (contributor license agreements) for the specified repository, including the contributor license agreement information configured for the repository, such as the name and ID of each agreement.
Access token support¶
- AtomGit user access tokens
Anonymous access¶
This endpoint does not allow anonymous access.
Request parameters¶
| Parameter | Location | Type | Required | Description |
|---|---|---|---|---|
owner |
path | string | Yes | Address of the namespace that owns the repository (the address path of the enterprise, organization, or personal namespace) |
repo |
path | string | Yes | Repository path (path) |
access_token |
query | string | Yes | User authorization code |
Response parameters¶
| Field | Type | Always returned | Nullable | Description |
|---|---|---|---|---|
data |
object[] | Yes | No | CLA list |
data array element object
| Field | Type | Always returned | Nullable | Description |
|---|---|---|---|---|
data.id |
string | Yes | No | ID |
data.name |
string | Yes | No | Name |
Error response¶
This endpoint requires authenticated access; when the request is unauthenticated or the credentials are invalid, it usually returns 401. The exact error response structure depends on what the backend returns.
HTTP response status codes¶
| Status code | Description |
|---|---|
200 |
Succeeded (OK) |
401 |
Authentication required (Requires authentication) |
403 |
Access forbidden (Forbidden) |
404 |
The requested resource does not exist (Not found) |
Request example¶
Parameter notes¶
Replace
<owner>with the address of the namespace that owns the repository (the address path of the enterprise, organization, or personal namespace); replace<repo>with the repository path (path); replace<token>with your AtomGit user access token.
cURL¶
curl -X GET 'https://api.atomgit.com/api/v5/repos/<owner>/<repo>/clas?access_token=<token>' \
-H 'Accept: application/json'
JavaScript¶
// Native fetch (Node.js 18+ / browser)
const url = new URL("https://api.atomgit.com/api/v5/repos/<owner>/<repo>/clas");
url.searchParams.set("access_token", "<YOUR-TOKEN>");
const response = await fetch(url, {
headers: {
"Accept": "application/json",
},
});
if (!response.ok) {
throw new Error(`Request failed: ${response.status}`);
}
const data = await response.json();
console.log(data);
Python¶
import requests
resp = requests.get(
"https://api.atomgit.com/api/v5/repos/<owner>/<repo>/clas",
params={"access_token": "<YOUR-TOKEN>"},
headers={"Accept": "application/json"},
timeout=10,
)
resp.raise_for_status()
print(resp.json())
Response example¶
Status code: 200
Error codes¶
| Error code | Description |
|---|---|
401 |
Unauthenticated or invalid credentials (missing or invalid access credentials) |
403 |
Access forbidden |
404 |
The requested resource does not exist |
429 |
Too many requests; rate limit triggered |
500 |
Internal system error |
Markdown source: View on AtomGit·Content from the open-source project gitcode-dev/atomgit-api-doc