Create New Graph Database
/v1/graphsPart of Graphs.
Creates a graph asynchronously. Returns an OperationEnvelope with operation_id for SSE progress at /v1/operations/{operation_id}/stream. Entity graphs require initial_entity. Supports Idempotency-Key header.
Authentication
Authenticate in any one of these ways — not all of them:
- API key in the
X-API-Keyheader. - Bearer token in the
Authorizationheader.
Header parameters
| Name | Type | Description |
|---|---|---|
Idempotency-Keyoptional | string | Idempotency-Key |
Request body
Required, application/json.
| Field | Type | Description | |||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
metadatarequired | GraphMetadata | Graph metadata including name, description, and schema extensions GraphMetadata fields
| |||||||||||||||||||||||||||||||||||||||
instance_tieroptional | string | Instance tier: ladybug-standard, ladybug-large, ladybug-xlarge Default: | |||||||||||||||||||||||||||||||||||||||
custom_schemaoptional | CustomSchemaDefinition | Custom schema definition to apply. If provided, creates a generic custom graph. If omitted, creates an entity graph using schema_extensions. CustomSchemaDefinition fields
| |||||||||||||||||||||||||||||||||||||||
initial_entityoptional | InitialEntityData | Initial entity for the graph. Required for entity graphs (when custom_schema is omitted). Omit only when providing custom_schema for a generic graph. InitialEntityData fields
| |||||||||||||||||||||||||||||||||||||||
create_entityoptional | boolean | Whether to create the entity node and upload initial data. Only applies when initial_entity is provided. Set to False to create graph without populating entity data (useful for file-based ingestion workflows). Default: | |||||||||||||||||||||||||||||||||||||||
tagsoptional | string[] | Optional tags for organization |
Example request
curl -X POST "https://api.robosystems.ai/v1/graphs" \
-H "X-API-Key: $ROBOSYSTEMS_API_KEY" \
-H "Idempotency-Key: <Idempotency-Key>" \
-H "Content-Type: application/json" \
-d '{
"create_entity": true,
"initial_entity": {
"cik": "0001234567",
"ein": "12-3456789",
"name": "Acme Consulting LLC",
"state_of_incorporation": "Delaware",
"uri": "https://acmeconsulting.com"
},
"instance_tier": "ladybug-standard",
"metadata": {
"description": "Professional consulting services with full accounting integration",
"graph_name": "Acme Consulting LLC",
"schema_extensions": [
"roboledger"
]
},
"tags": [
"consulting",
"professional-services",
"production"
]
}'Responses
202 Successful Response
| Field | Type | Description |
|---|---|---|
operationrequired | string | Kebab-case operation name |
operationIdrequired | string | op_-prefixed ULID for audit and SSE correlation |
statusrequired | string | Operation lifecycle state One of: |
resultoptional | any | Command-specific result payload |
atrequired | string | ISO-8601 UTC timestamp |
createdByoptional | string | User ID that initiated the operation (null for legacy callers) |
idempotentReplayoptional | boolean | True when this envelope came from the idempotency cache — the underlying command did not execute again. False on fresh executions. Default: |
| Status | Meaning |
|---|---|
| 400 | Invalid request |
| 401 | Authentication required |
| 402 | Payment required — add a payment method or check org graph limit |
| 403 | Access denied |
| 404 | Resource not found |
| 409 | Idempotency-Key conflict — key reused with different body |
| 422 | Validation error |
| 429 | Rate limit exceeded |
| 500 | Internal server error |