{"openapi":"3.1.0","info":{"title":"Aisma API","version":"2026-10-19","contact":{"email":"support@aisma.ai"},"description":"Edit a video with words and reference photos and receive the result privately in your Aisma Library. Prices are the app's prices in credits; credits are bought in the Aisma app. Videos are 2–60 seconds long and up to 500 MB (MP4 or MOV); up to 10 photos (JPEG, PNG or WebP)."},"externalDocs":{"description":"Aisma for developers: authentication, the edit flow, MCP, limits and errors","url":"https://aisma.ai/developers"},"servers":[{"url":"https://api.aisma.ai"}],"jsonSchemaDialect":"https://json-schema.org/draft/2020-12/schema","components":{"schemas":{"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string","enum":["invalid_request","unauthorized","insufficient_credits","cap_reached","forbidden_scope","not_found","quote_expired","not_ready","idempotency_mismatch","rate_limited","unavailable","internal"]},"message":{"type":"string"}}}}},"UploadRequest":{"type":"object","required":["kind","contentType","bytes"],"additionalProperties":false,"properties":{"kind":{"type":"string","enum":["video","photo"]},"contentType":{"type":"string","enum":["video/mp4","video/quicktime","image/jpeg","image/png","image/webp"]},"bytes":{"type":"integer","minimum":1,"maximum":524288000}}},"Upload":{"type":"object","required":["assetId","uploadUrl","expiresAt","method","headers"],"properties":{"assetId":{"type":"string","format":"uuid"},"uploadUrl":{"type":["string","null"],"format":"uri"},"expiresAt":{"type":["string","null"],"format":"date-time"},"method":{"const":"PUT"},"headers":{"type":"object","additionalProperties":{"type":"string"}}}},"LibrarySourceRequest":{"type":"object","required":["jobId"],"additionalProperties":false,"properties":{"jobId":{"type":"string","format":"uuid"}}},"Asset":{"type":"object","required":["id","status"],"properties":{"id":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["uploading","checking","ready","failed","expired"]},"error":{"type":["string","null"]},"frameCount":{"type":["integer","null"]},"durationSeconds":{"type":["number","null"]}}},"QuoteRequest":{"type":"object","required":["sourceId","brief"],"additionalProperties":false,"properties":{"sourceId":{"type":"string","format":"uuid"},"brief":{"type":"string","minLength":1,"maxLength":2000,"description":"What to change, in your own words. Refer to photos by their label: \"photo 1\"."},"quality":{"type":"string","enum":["720p","1080p"],"default":"720p"},"photos":{"type":"array","maxItems":10,"items":{"type":"object","required":["assetId","label"],"additionalProperties":false,"properties":{"assetId":{"type":"string","format":"uuid"},"label":{"type":"integer","minimum":1,"maximum":1000}}}}}},"Quote":{"type":"object","required":["id","credits","expiresAt"],"properties":{"id":{"type":"string","format":"uuid"},"credits":{"type":"integer"},"expiresAt":{"type":"string","format":"date-time"}}},"QuotePending":{"type":"object","required":["pending","retryAfterMs"],"properties":{"pending":{"const":true},"retryAfterMs":{"type":"integer"}}},"JobRequest":{"type":"object","required":["quoteId"],"additionalProperties":false,"properties":{"quoteId":{"type":"string","format":"uuid"}}},"JobStart":{"type":"object","required":["jobId","credits","status"],"properties":{"jobId":{"type":"string","format":"uuid"},"credits":{"type":"integer"},"status":{"type":"string","enum":["queued","processing","finalizing","completed","failed"]}}},"Job":{"type":"object","required":["id","status","stage","progress","resultReady","credits","issues","createdAt"],"properties":{"id":{"type":"string","format":"uuid"},"status":{"type":"string","enum":["queued","processing","finalizing","completed","failed"]},"stage":{"type":"string","enum":["preparing","queued","generating","saving","completed","failed"]},"progress":{"type":"integer","minimum":0,"maximum":100},"outcome":{"type":["string","null"],"enum":["edited","partial","original_only","pending",null]},"resultReady":{"type":"boolean"},"quality":{"type":["string","null"]},"durationSeconds":{"type":"number"},"parts":{"type":"object","properties":{"ready":{"type":"integer"},"expected":{"type":["integer","null"]}}},"credits":{"type":"object","properties":{"reserved":{"type":"integer"},"refunded":{"type":"integer"},"charged":{"type":["integer","null"]},"settled":{"type":"boolean"}}},"issues":{"type":"array","items":{"type":"object","properties":{"stage":{"type":"string"},"state":{"type":"string"},"part":{"type":["integer","null"]},"message":{"type":"string"}}}},"origin":{"type":"string","enum":["app","api"]},"brief":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"},"completedAt":{"type":["string","null"],"format":"date-time"}}},"JobPage":{"type":"object","required":["jobs","nextCursor"],"properties":{"jobs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"status":{"type":"string"},"stage":{"type":"string"},"progress":{"type":"integer"},"origin":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"completedAt":{"type":["string","null"]},"credits":{"type":"object"}}}},"nextCursor":{"type":["string","null"]}}},"ResultLink":{"type":"object","required":["url","expiresAt"],"properties":{"url":{"type":"string","format":"uri"},"expiresAt":{"type":"string","format":"date-time"}}},"Account":{"type":"object","required":["balance","checkoutUrl","credential","limits"],"properties":{"balance":{"type":"integer"},"checkoutUrl":{"type":"string","format":"uri"},"credential":{"type":"object","properties":{"id":{"type":"string","format":"uuid"},"scopes":{"type":"array","items":{"type":"string","enum":["media:write","media:read","jobs:read","jobs:write","account:read","webhooks:write"]}},"monthlyCreditCap":{"type":"integer"},"jobCreditCap":{"type":["integer","null"]},"spentThisMonth":{"type":"integer"},"activeJobs":{"type":"integer"}}},"limits":{"type":"object","additionalProperties":{"type":"object","properties":{"max":{"type":"integer"},"windowSeconds":{"type":"integer"}}}}}},"WebhookRequest":{"type":"object","required":["url"],"additionalProperties":false,"properties":{"url":{"type":"string","format":"uri","pattern":"^https://"},"events":{"type":"array","items":{"type":"string","enum":["job.completed","job.failed","job.settled"]}}}},"Webhook":{"type":"object","required":["id","url","events","createdAt"],"properties":{"id":{"type":"string","format":"uuid"},"url":{"type":"string"},"events":{"type":"array","items":{"type":"string","enum":["job.completed","job.failed","job.settled"]}},"createdAt":{"type":"string","format":"date-time"},"secret":{"type":["string","null"],"description":"The signing secret (Standard Webhooks), returned once on creation."}}},"WebhookList":{"type":"object","required":["webhooks"],"properties":{"webhooks":{"type":"array","items":{"$ref":"#/components/schemas/Webhook"}}}}},"securitySchemes":{"bearer":{"type":"http","scheme":"bearer","description":"A personal API key (aisma_live_… or aisma_dev_…) created on Profile → Connected apps and keys."},"oauth":{"type":"oauth2","description":"OAuth 2.1 with PKCE; see /.well-known/oauth-protected-resource.","flows":{"authorizationCode":{"authorizationUrl":"https://wzxzvfuertykyjqbatuu.supabase.co/auth/v1/oauth/authorize","tokenUrl":"https://wzxzvfuertykyjqbatuu.supabase.co/auth/v1/oauth/token","refreshUrl":"https://wzxzvfuertykyjqbatuu.supabase.co/auth/v1/oauth/token","scopes":{"media:write":"Upload videos and photos, and use Library videos as sources","media:read":"Check uploads and get links to finished videos","jobs:read":"See edit status and the Library","jobs:write":"Get prices and start edits that spend credits","account:read":"See the credit balance and limits","webhooks:write":"Register webhook endpoints"}}}}}},"paths":{"/v1/uploads":{"post":{"operationId":"uploadCreate","summary":"Create a signed upload for a video or photo","security":[{"bearer":[]},{"oauth":["media:write"]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":8,"maxLength":150}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadRequest"}}}},"responses":{"201":{"description":"Create a signed upload for a video or photo","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Upload"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Not enough credits or the credential's credit cap reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The credential lacks the scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Quote expired, result not ready or Idempotency-Key reused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/assets/{id}":{"get":{"operationId":"assetGet","summary":"Read an upload's check status","security":[{"bearer":[]},{"oauth":["media:read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Read an upload's check status","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Asset"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Not enough credits or the credential's credit cap reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The credential lacks the scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Quote expired, result not ready or Idempotency-Key reused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/assets/from-library":{"post":{"operationId":"assetFromLibrary","summary":"Use a finished Library video as a source","security":[{"bearer":[]},{"oauth":["media:write"]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":8,"maxLength":150}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LibrarySourceRequest"}}}},"responses":{"201":{"description":"Use a finished Library video as a source","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Asset"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Not enough credits or the credential's credit cap reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The credential lacks the scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Quote expired, result not ready or Idempotency-Key reused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/quotes":{"post":{"operationId":"quoteCreate","summary":"Price an edit (no charge)","security":[{"bearer":[]},{"oauth":["jobs:write"]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":8,"maxLength":150}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuoteRequest"}}}},"responses":{"201":{"description":"Price an edit (no charge)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Quote"}}}},"202":{"description":"The source is still being analysed; retry after retryAfterMs","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuotePending"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Not enough credits or the credential's credit cap reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The credential lacks the scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Quote expired, result not ready or Idempotency-Key reused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/jobs":{"post":{"operationId":"jobStart","summary":"Start a quoted edit (reserves its credits)","security":[{"bearer":[]},{"oauth":["jobs:write"]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":8,"maxLength":150}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobRequest"}}}},"responses":{"201":{"description":"Start a quoted edit (reserves its credits)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobStart"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Not enough credits or the credential's credit cap reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The credential lacks the scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Quote expired, result not ready or Idempotency-Key reused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"get":{"operationId":"jobList","summary":"List the Library, newest first","security":[{"bearer":[]},{"oauth":["jobs:read"]}],"parameters":[{"name":"cursor","in":"query","schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":100}}],"responses":{"200":{"description":"List the Library, newest first","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobPage"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Not enough credits or the credential's credit cap reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The credential lacks the scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Quote expired, result not ready or Idempotency-Key reused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/jobs/{id}":{"get":{"operationId":"jobGet","summary":"Read an edit's status","security":[{"bearer":[]},{"oauth":["jobs:read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Read an edit's status","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Job"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Not enough credits or the credential's credit cap reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The credential lacks the scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Quote expired, result not ready or Idempotency-Key reused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/jobs/{id}/result":{"post":{"operationId":"jobResult","summary":"Get a one-hour link to the finished video","security":[{"bearer":[]},{"oauth":["media:read"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Get a one-hour link to the finished video","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResultLink"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Not enough credits or the credential's credit cap reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The credential lacks the scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Quote expired, result not ready or Idempotency-Key reused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/account":{"get":{"operationId":"accountGet","summary":"Balance, limits and usage","security":[{"bearer":[]},{"oauth":["account:read"]}],"responses":{"200":{"description":"Balance, limits and usage","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Account"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Not enough credits or the credential's credit cap reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The credential lacks the scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Quote expired, result not ready or Idempotency-Key reused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/webhooks":{"post":{"operationId":"webhookCreate","summary":"Register a webhook endpoint","security":[{"bearer":[]},{"oauth":["webhooks:write"]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","minLength":8,"maxLength":150}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookRequest"}}}},"responses":{"201":{"description":"Register a webhook endpoint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Not enough credits or the credential's credit cap reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The credential lacks the scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Quote expired, result not ready or Idempotency-Key reused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"get":{"operationId":"webhookList","summary":"List webhook endpoints","security":[{"bearer":[]},{"oauth":["webhooks:write"]}],"responses":{"200":{"description":"List webhook endpoints","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookList"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Not enough credits or the credential's credit cap reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The credential lacks the scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Quote expired, result not ready or Idempotency-Key reused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/webhooks/{id}":{"delete":{"operationId":"webhookDelete","summary":"Remove a webhook endpoint","security":[{"bearer":[]},{"oauth":["webhooks:write"]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Remove a webhook endpoint","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Webhook"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Missing, invalid or revoked credential","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"402":{"description":"Not enough credits or the credential's credit cap reached","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The credential lacks the scope","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Quote expired, result not ready or Idempotency-Key reused","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Rate limited","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Temporarily unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}