Workspace
Create workspace custom target
Create a workspace-level custom target, available to every application with the target's platform. Requires a plan that includes custom targets, and a workspace API key with workspace:create scope.
POST
/workspace/custom-targetsAuthorization
bearerAuth AuthorizationBearer <token>
API key. Bearer authentication header of the form Bearer <token>, where <token> is your Workspace or Application API key.
In: header
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
curl -X POST "https://example.comworkspace/custom-targets" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d @- <<'EOF'{ "name": "Kiosk", "description": "In-store kiosk devices", "platform": "android"}EOF{ "message": "Custom target created successfully.", "data": { "id": "550e8400-e29b-41d4-a716-446655440010", "name": "Kiosk", "description": "In-store kiosk devices", "level": "workspace", "platform": { "identifier": "android", "name": "Android" }, "icon_url": null, "created_at": "2025-06-10T09:15:00.000000Z", "updated_at": "2025-06-15T14:30:00.000000Z" }}{ "message": "Unauthorized"}{ "message": "This action requires 'resource:action' scope."}{ "message": "A label with this name already exists."}{ "message": "string", "errors": { "property1": [ "string" ], "property2": [ "string" ] }}