Skip to main content
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

Authorization
string
header
default:dav_ak_live_your_token
required

Personal access token. Programmatic reads require the projects:read scope.

Query Parameters

page
integer
default:1
Required range: x >= 1
limit
integer
default:50
Required range: 1 <= x <= 100

Response

Project page.

success
boolean
required
data
object
required