curl --request POST \
--url https://sapi.withsutro.com/applications/{applicationId}/slang-edit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-sutro-api-client: <api-key>' \
--data '
{
"prompt": "<string>"
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"implementationJobId": "<string>",
"jobType": "figma_code_generation",
"status": "queued",
"customerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"metadata": {},
"errorMessage": "<string>",
"errorStack": "<string>",
"startedAt": "<string>",
"completedAt": "<string>"
}curl --request POST \
--url https://sapi.withsutro.com/applications/{applicationId}/slang-edit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'x-sutro-api-client: <api-key>' \
--data '
{
"prompt": "<string>"
}
'{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"implementationJobId": "<string>",
"jobType": "figma_code_generation",
"status": "queued",
"customerId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"projectId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"metadata": {},
"errorMessage": "<string>",
"errorStack": "<string>",
"startedAt": "<string>",
"completedAt": "<string>"
}Builder authentication and authorization
A unique identifier for the API Client making a request
The natural language edit instruction
Edit job accepted and queued for processing
The job ID
The implementation job ID
The type of job
figma_code_generation, application_generation, follow_up_change, slang_edit, test The current status of the job
queued, active, completed, failed, cancelled The customer ID
The project ID
Job-specific metadata (structure depends on jobType)
Error message if the job failed
Error stack trace if the job failed
When the job started
When the job completed
Was this page helpful?