Create collection
Create a new collection in the workspace.
This endpoint creates a collection with the specified name. Collections are used to organize scenes and manage permissions.
Use cases:
- Organizing scenes by project, team, or topic
- Automating collection creation for onboarding flows
- Integrating with external project management tools
POST
apiKeyheader
AuthorizationBearer <Bearer>The API will use the Authorization: Bearer <your-key> header for requests.
application/json- body
name*stringThis response returns the newly created collection.
application/json- response
This response returns the newly created collection.
id*stringisDefault?booleanworkspace*stringcreator*string|nullupdater?string|nullteams*array<string>|nullcreated*stringMatch
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$Format
date-timesortOrder?string|nullname*stringupdated*|Match
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z))$Format
date-timeisDeleted?booleanemoji?|nulldeletedAt?numbercurl -X POST 'https://api.excalidraw.com/api/v1/collections' \
-H 'Content-Type: application/json' \
-d '{
"name": "string"
}'Example Response
{
"id": "string",
"isDefault": true,
"workspace": "string",
"creator": "string",
"updater": "string",
"teams": [
"string"
],
"created": "2019-08-24T14:15:22Z",
"sortOrder": "string",
"name": "string",
"updated": "2019-08-24T14:15:22Z",
"isDeleted": true,
"emoji": {
"id": "string",
"native": "string",
"unified": "string"
},
"deletedAt": 0
}Last updated on