Python
import os
from dataframer import Dataframer
client = Dataframer(
api_key=os.environ.get("DATAFRAMER_API_KEY"), # This is the default and can be omitted
)
spec = client.dataframer.specs.retrieve(
spec_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
)
print(spec.id)curl https://df-api.dataframer.ai/api/dataframer/specs/$SPEC_ID/ \
-H "Authorization: Bearer $DATAFRAMER_API_KEY"{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Customer Support Conversations Spec",
"description": "Spec for generating synthetic customer support conversations",
"status": "PROCESSING",
"created_at": "2025-01-15T10:30:00Z",
"updated_at": "2025-01-15T10:30:00Z",
"dataset_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"dataset_name": "Customer Support Dataset",
"dataset_type": "SINGLE_FILE",
"created_by_email": "sarah.chen@acme.com",
"content_yaml": null,
"versions": []
}
Specs (data blueprints)
Get spec
Retrieve a specific spec by ID
GET
/
api
/
dataframer
/
specs
/
{spec_id}
/
Python
import os
from dataframer import Dataframer
client = Dataframer(
api_key=os.environ.get("DATAFRAMER_API_KEY"), # This is the default and can be omitted
)
spec = client.dataframer.specs.retrieve(
spec_id="182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e",
)
print(spec.id)curl https://df-api.dataframer.ai/api/dataframer/specs/$SPEC_ID/ \
-H "Authorization: Bearer $DATAFRAMER_API_KEY"{
"id": "550e8400-e29b-41d4-a716-446655440000",
"name": "Customer Support Conversations Spec",
"description": "Spec for generating synthetic customer support conversations",
"status": "PROCESSING",
"created_at": "2025-01-15T10:30:00Z",
"updated_at": "2025-01-15T10:30:00Z",
"dataset_id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"dataset_name": "Customer Support Dataset",
"dataset_type": "SINGLE_FILE",
"created_by_email": "sarah.chen@acme.com",
"content_yaml": null,
"versions": []
}
Authorizations
Query Parameters
Response
Spec details
Set when content_yaml is null because the YAML is stored in your own cloud. The spec is ready. A current Python SDK reads the YAML from your data plane and returns it in content_yaml, so it does not set this; the DataFramer app shows it too. Absent otherwise
Available options:
spec_content_in_data_plane 
