Skip to content
TALA
Esc
navigateopen⌘Jpreview

This endpoint is used to create a collection for a user

POST/api/collections/create
Authorization
AuthorizationBearer token (JWT) · headerrequired
Header parameters
x-organization-idstring
Target organization id. Defaults to the caller's personal organization when omitted.
Request body
requiredapplication/json
titlestringrequired
The title of the collection (letters and spaces only)
Responses
201Created
any
400Bad Request
any
500Internal Server Error
any
Try it
Server
Authorization
Parameters
Bodyapplication/json
Request
curl -X POST "http://localhost:8000/api/collections/create" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "title": "My TALA Collection"
}'
Response
{
  "id": "CLb2Nk6x8R",
  "title": "My Collection",
  "userId": "CRa7Bk9x2Q"
}