Create a collection
Create a collection (collections:write)
Every request sends Authorization: Bearer ...: the access token in local mode, an API key stk_... in cloud mode. Use Send to try it against your cloud instance with your API key.
AuthorizationBearer <token>API key (stk_...), or in the Community Edition the access token (stk_local_...)
Idempotency-Key?stringReplays the stored response when the same key is repeated with the same method, path,
query string and body within 24 hours (422 idempotency_mismatch with a different
request, 409 idempotency_in_progress while the first one runs). Not applied to
multipart uploads or to responses that carry a secret.
length <= 200application/json- body
name*stringdescription?stringicon?stringcolor?stringprocessing_timeout_seconds?|How long targets on your own automation may wait for a result before they fail; null goes back to the server's PROCESSING_TIMEOUT.
60 <= value <= 86400archived?booleanCreated
application/json- response
id*stringname*stringdescription*stringicon*stringcolor*stringprocessing_timeout_seconds*|How long a target on your own automation may wait for a result before it fails, in seconds (60 to 86400); null = the server's PROCESSING_TIMEOUT (see defaults.processing_timeout_seconds on GET /session).
is_default*booleanThe workspace's Default collection. Every workspace has exactly one; it can be renamed but not archived or deleted (409).
archived*booleanarchived_at*string|nullcreated_at*stringupdated_at*stringpost_count*integerstatus_counts*Posts by status
curl -X POST 'https://staqly.example.com/v1/collections' \ -H 'Content-Type: application/json' \ -d '{}'{ "id": "string", "name": "string", "description": "string", "icon": "string", "color": "string", "processing_timeout_seconds": 0, "is_default": true, "archived": true, "archived_at": "string", "created_at": "string", "updated_at": "string", "post_count": 0, "status_counts": { "property1": 0, "property2": 0 }}