cURL
curl --request POST \ --url https://api.specular.dev/branches/ \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "<string>", "projectId": "<string>" }'
{ "branch": { "id": "<string>", "projectId": "<string>", "name": "<string>", "state": "<string>", "createdAt": "2023-11-07T05:31:56Z", "updatedAt": "2023-11-07T05:31:56Z", "mcpUrl": "<string>", "appUrl": "<string>" } }
Create a new branch
Bearer authentication with API key (format: Bearer sk_xxx)
Branch name
Project ID
Branch created successfully
Show child attributes