Up to 20 per workspace. Owner and admin keys only.
Authorization
bearerAuth limits:writeIn: header
Scope: limits:write
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/credit-alerts" \ -H "Content-Type: application/json" \ -d '{ "watch": "balance", "level": 1 }'{ "data": { "id": "string", "watch": "balance", "subjects": [ "string" ], "level": 1, "recipients": "admins", "notifySubject": true, "createdBy": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z", "links": { "self": "string" } }}{ "error": { "code": "string", "message": "string", "requestId": "string" }}{ "error": { "code": "string", "message": "string", "requestId": "string" }}{ "error": { "code": "string", "message": "string", "requestId": "string" }}{ "error": { "code": "string", "message": "string", "requestId": "string" }}{ "error": { "code": "string", "message": "string", "requestId": "string" }}{ "error": { "code": "string", "message": "string", "requestId": "string" }}Create a direct upload POST
For local image, video, or audio files with no URL (use POST /assets/import for remote media). Returns a short-lived signed PUT URL: upload the bytes to uploadUrl sending every header from the response headers map (Content-Type plus the x-goog-content-length-range size cap — the storage provider rejects the PUT if either is missing or altered), then call the complete endpoint to finalize the asset. Spends no credits.
Create an element POST
Creates an element from image assets the caller can see. The @ID must be free in the workspace (409 conflict suggests a free one). Adding an image shares it with the whole workspace through the element.