curl --request POST \
--url https://api.example.com/api/idl/upload \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"programId": "<string>",
"idl": {},
"description": "<string>",
"cpiMd": "<string>",
"isPublic": true
}
'{
"400": {},
"401": {},
"409": {},
"429": {},
"500": {},
"project": {
"project.id": "<string>",
"project.name": "<string>",
"project.slug": "<string>",
"project.programId": "<string>",
"project.isPublic": true
},
"idl": {
"idl.versionId": "<string>",
"idl.version": 123,
"idl.programName": "<string>",
"idl.instructionCount": 123,
"idl.accountCount": 123,
"idl.errorCount": 123,
"idl.eventCount": 123
},
"validation": {
"validation.warnings": [
{}
]
}
}Create a new project with an IDL file
curl --request POST \
--url https://api.example.com/api/idl/upload \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"programId": "<string>",
"idl": {},
"description": "<string>",
"cpiMd": "<string>",
"isPublic": true
}
'{
"400": {},
"401": {},
"409": {},
"429": {},
"500": {},
"project": {
"project.id": "<string>",
"project.name": "<string>",
"project.slug": "<string>",
"project.programId": "<string>",
"project.isPublic": true
},
"idl": {
"idl.versionId": "<string>",
"idl.version": 123,
"idl.programName": "<string>",
"idl.instructionCount": 123,
"idl.accountCount": 123,
"idl.errorCount": 123,
"idl.eventCount": 123
},
"validation": {
"validation.warnings": [
{}
]
}
}Documentation Index
Fetch the complete documentation index at: https://mintlify.com/berkayoztunc/orquestra/llms.txt
Use this file to discover all available pages before exploring further.
true.name, programId, or idl not provided.IDL size exceeded: IDL exceeds 10MB limit.CPI.md size exceeded: CPI.md exceeds 5MB limit.Invalid IDL structure: IDL validation failed. Response includes details and warnings fields.existingProjectId.details.curl -X POST https://api.orquestra.dev/api/idl/upload \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-d '{
"name": "My Token Program",
"description": "A custom SPL token implementation",
"programId": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
"idl": {
"version": "0.1.0",
"name": "my_token_program",
"instructions": [
{
"name": "initialize",
"accounts": [
{
"name": "mint",
"isMut": true,
"isSigner": false
},
{
"name": "authority",
"isMut": false,
"isSigner": true
}
],
"args": [
{
"name": "decimals",
"type": "u8"
}
]
}
],
"accounts": [],
"types": [],
"errors": [],
"events": []
},
"isPublic": true
}'
{
"project": {
"id": "abc123def456",
"name": "My Token Program",
"slug": "my-token-program",
"programId": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
"isPublic": true
},
"idl": {
"versionId": "xyz789uvw012",
"version": 1,
"programName": "my_token_program",
"instructionCount": 1,
"accountCount": 0,
"errorCount": 0,
"eventCount": 0
},
"validation": {
"warnings": []
}
}
{
"error": "Project already exists for this program ID",
"existingProjectId": "existing123"
}
{
"error": "Invalid IDL structure",
"details": [
"Missing required field: version",
"Instructions array cannot be empty"
],
"warnings": [
"Consider adding error definitions for better debugging"
]
}