cURL
curl --request GET \
--url https://davinci-app.com/api/v2/programmatic/projects \
--header 'Authorization: Bearer <token>'import os
from davinci_sdk import DavinciClient
with DavinciClient(api_key=os.environ["DAVINCI_API_KEY"]) as client:
result = client.projects.list(limit=10)
for project in result.projects:
print(project.id, project.name)import { DavinciClient } from '@celedon/davinci-sdk';
const client = new DavinciClient({
apiKey: process.env.DAVINCI_API_KEY!,
});
const { projects } = await client.projects.list({ limit: 10 });
for (const project of projects) {
console.log(project.id, project.name);
}const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://davinci-app.com/api/v2/programmatic/projects', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"data": {
"projects": [
{
"id": "<string>",
"projectId": "<string>",
"name": "<string>",
"ownerLicenseKey": "<string>",
"ownerUserId": "<string>",
"ownerOrgId": "<string>",
"visibility": "<string>",
"createdAt": "<string>",
"modifiedAt": "<string>"
}
],
"count": 1,
"page": 2,
"limit": 2,
"totalPages": 1
}
}{
"success": true,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"success": true,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"success": true,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"success": true,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"success": true,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"success": true,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}Projects
List accessible projects
Returns a flat paginated list of projects visible to the authenticated API-key actor.
GET
https://davinci-app.com
/
api
/
v2
/
programmatic
/
projects
cURL
curl --request GET \
--url https://davinci-app.com/api/v2/programmatic/projects \
--header 'Authorization: Bearer <token>'import os
from davinci_sdk import DavinciClient
with DavinciClient(api_key=os.environ["DAVINCI_API_KEY"]) as client:
result = client.projects.list(limit=10)
for project in result.projects:
print(project.id, project.name)import { DavinciClient } from '@celedon/davinci-sdk';
const client = new DavinciClient({
apiKey: process.env.DAVINCI_API_KEY!,
});
const { projects } = await client.projects.list({ limit: 10 });
for (const project of projects) {
console.log(project.id, project.name);
}const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://davinci-app.com/api/v2/programmatic/projects', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"data": {
"projects": [
{
"id": "<string>",
"projectId": "<string>",
"name": "<string>",
"ownerLicenseKey": "<string>",
"ownerUserId": "<string>",
"ownerOrgId": "<string>",
"visibility": "<string>",
"createdAt": "<string>",
"modifiedAt": "<string>"
}
],
"count": 1,
"page": 2,
"limit": 2,
"totalPages": 1
}
}{
"success": true,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"success": true,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"success": true,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"success": true,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"success": true,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}{
"success": true,
"error": {
"code": "<string>",
"message": "<string>",
"details": {}
}
}Authorizations
Personal access token. Programmatic reads require the projects:read scope.
Query Parameters
Required range:
x >= 1Required range:
1 <= x <= 100Response
Project page.
Hide child attributes
Hide child attributes
Hide child attributes
Hide child attributes
Required range:
x >= 0Required range:
x >= 1Required range:
x >= 1Required range:
x >= 0⌘I