cURL
curl --request POST \ --url https://api.zeroentropy.dev/v1/collections/add-collection \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "collection_name": "<string>" }'
{ "message": "Success!" }
Adds a collection.
If the collection already exists, a 409 Conflict status code will be returned.
409 Conflict
The Authorization header must be provided in the format Bearer <your-api-key>.
Authorization
Bearer <your-api-key>
You can get your API Key at the Dashboard!
Successful Response
The response is of type object.
object