Menu
Create Project
Create a project
POST
/projectsUse it in a workflow
- Add a step and choose the Sanity connector.
- Pick the Create Project action (under Projects).
- Fill in the fields below, then reference the result from later steps as
{{createProject.response.data}}.
Request
Request body
Enter the body as JSON in the step's Body field.
{
"displayName": "My Project",
"organizationId": "oAbC123xyz",
"id": "wefsadfj",
"metadata": {
"color": "#000000",
"externalStudioHost": "https://my-project.my-domain.com"
},
"studioHost": "string",
"createDefaultCorsOrigin": true
}
Response
Returns 201 with an object. Read it in later steps with {{createProject.response.data.<field>}}.
{
"id": "string",
"displayName": "string",
"studioHost": "string",
"organizationId": "string",
"metadata": {
"color": "string"
},
"isBlocked": false,
"isDisabled": false,
"isDisabledByUser": false,
"activityFeedEnabled": false,
"createdAt": "2025-01-01T00:00:00Z",
"updatedAt": "2025-01-01T00:00:00Z",
"members": [
{
"id": "string",
"role": "administrator",
"roles": [
{
"name": "string",
"title": "string",
"description": "string"
}
],
"isCurrentUser": false,
"isRobot": false,
"createdAt": "2025-01-01T00:00:00Z",
"updatedAt": "2025-01-01T00:00:00Z"
}
]
}
Need more? See the Sanity guide for connection setup and behaviour shared by every action.
Was this page helpful?