Access
Create a workspace for the Postdot instance
POST
sessionCookiecookie
better-auth.session_token<token>The Better Auth email/password session cookie used by the web application.
- body
name*stringLength
1 <= length <= 80Response for status 201
application/json- response
workspace*curl -X POST 'https://postbot.example/api/workspaces' \
-H 'Content-Type: application/json' \
-d '{
"name": "string"
}'Example Response
{
"workspace": {
"id": "string",
"name": "string",
"slug": "string",
"isDefault": true,
"createdAt": 0,
"updatedAt": 0,
"role": "owner"
}
}