Skip to main content
POST
https://api.u1.archetypeai.app/v0.5
/
lens
/
delete
curl -X POST https://api.dev.u1.archetypeai.app/v0.5/lens/delete \
  -H "Authorization: Bearer $ATAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "lens_id": "lns-test-lens-85c01267"
  }'
{
  "is_valid": true,
  "lens_id": "lns-test-lens-85c01267",
  "errors": []
}

Overview

This endpoint deletes a lens template, removing it from the list of available lens templates. Note that deleting the lens template does not stop or delete any active lens sessions based on the template.

Request

Authorization
string
required
Bearer token for authentication. Format: Bearer $ATAI_API_KEY
lens_id
string
required
The unique lens ID to delete. This is returned when the lens template is created.

Response

is_valid
boolean
Whether the deletion was successful. Check this field to detect errors.
lens_id
string
The ID of the lens that was deleted (or attempted to delete).
errors
array
Array of error messages if the deletion failed.
curl -X POST https://api.dev.u1.archetypeai.app/v0.5/lens/delete \
  -H "Authorization: Bearer $ATAI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "lens_id": "lns-test-lens-85c01267"
  }'
{
  "is_valid": true,
  "lens_id": "lns-test-lens-85c01267",
  "errors": []
}