Skip to main content
POST
/
api
/
stores
Create store
curl --request POST \
  --url https://api.example.com/api/stores \
  --header 'Content-Type: application/json' \
  --cookie better-auth.session_token= \
  --data '
{
  "name": "<string>",
  "description": "<string>",
  "organizationId": "<string>",
  "active": true
}
'
{
  "id": "<string>",
  "userId": "<string>",
  "name": "<string>",
  "active": true,
  "createdAt": "<string>",
  "updatedAt": "<string>",
  "organizationId": "<string>",
  "description": "<string>"
}

Authorizations

better-auth.session_token
string
cookie
required

Body

application/json
name
string
required
Minimum string length: 1
description
string
organizationId
string
active
boolean

Response

201 - application/json

Default Response

id
string
required
userId
string
required
name
string
required
active
boolean
required
createdAt
string
required
updatedAt
string
required
organizationId
string
description
string