cURL
curl --request GET \
--url https://davinci-app.com/api/v2/programmatic/projects/{projectId}/objects/{objectId} \
--header 'Authorization: Bearer <token>'import os
from davinci_sdk import DavinciClient
with DavinciClient(api_key=os.environ["DAVINCI_API_KEY"]) as client:
obj = client.projects.get_object("project-id", "object-id", branch="main")
print(obj.name, obj.type)
import { DavinciClient } from '@celedon/davinci-sdk';
const client = new DavinciClient({
apiKey: process.env.DAVINCI_API_KEY!,
});
const object = await client.projects.getObject('project-id', 'object-id', {
branch: 'main',
});
console.log(object.name, object.type);
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://davinci-app.com/api/v2/programmatic/projects/{projectId}/objects/{objectId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"data": {
"id": "<string>",
"type": "<string>",
"name": "<string>",
"parent": "<string>",
"children": [
"<string>"
],
"documentation": "<string>"
}
}{
"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
Get a project object
Returns a full object payload. Object shape is type-specific; common fields are documented and extra fields are allowed.
GET
https://davinci-app.com
/
api
/
v2
/
programmatic
/
projects
/
{projectId}
/
objects
/
{objectId}
cURL
curl --request GET \
--url https://davinci-app.com/api/v2/programmatic/projects/{projectId}/objects/{objectId} \
--header 'Authorization: Bearer <token>'import os
from davinci_sdk import DavinciClient
with DavinciClient(api_key=os.environ["DAVINCI_API_KEY"]) as client:
obj = client.projects.get_object("project-id", "object-id", branch="main")
print(obj.name, obj.type)
import { DavinciClient } from '@celedon/davinci-sdk';
const client = new DavinciClient({
apiKey: process.env.DAVINCI_API_KEY!,
});
const object = await client.projects.getObject('project-id', 'object-id', {
branch: 'main',
});
console.log(object.name, object.type);
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://davinci-app.com/api/v2/programmatic/projects/{projectId}/objects/{objectId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"success": true,
"data": {
"id": "<string>",
"type": "<string>",
"name": "<string>",
"parent": "<string>",
"children": [
"<string>"
],
"documentation": "<string>"
}
}{
"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.
Path Parameters
Project id. May be compound in the form {projectId}--{branchName}.
Minimum string length:
1Minimum string length:
1Query Parameters
⌘I