{"openapi":"3.1.1","info":{"title":"Clakta API","description":"Clakta is a powerful ad tracker and analytics platform.","version":"0.0.1","contact":{"name":"Clakta Support","email":"support@clakta.com"},"license":{"name":"AGPL-3.0 license","url":"https://github.com/clakta/clakta/blob/main/LICENSE.md"}},"servers":[{"url":"https://api.clakta.com","description":"Production API"}],"tags":[{"name":"Orders","description":"Record and maintain the orders Clakta attributes to your ad spend.","x-icon":"ShoppingBag"}],"paths":{"/v1/orders":{"post":{"operationId":"createOrder","x-speakeasy-name-override":"create","summary":"Create an order","description":"Record a new order for a project. The owning project is resolved from the `projectId` field in the request body. Orders count towards your team's monthly order limit.\n\nThe required fields are `projectId`, `orderId`, `paymentMethod`, `status`, `totalPrice`, `products`, and `name`, `email` and `ip` on `customer`. Everything else — `platform`, the remaining personal fields and the whole `tracking` object — is optional, so send what your storefront actually captured. An order with no `tracking` is recorded as unattributed, and one with no `platform` is stored and returned with `platform: null`.\n\nProjects using the `privacy_friendly` tracking mode must omit every personal field from `customer` and send only `ip` and `userAgent` — the order is then attached to an anonymous visitor derived from a server-computed daily session hash.\n\nSend `totalPrice` and each product `price` as a decimal in the order currency (`10.4` for $10.40). Clakta stores and returns them in the smallest unit of that currency, so `10.4` USD comes back as `1040`, while a zero-decimal currency such as JPY is kept whole — `1040` in, `1040` out.","tags":["Orders"],"security":[{"token":[]}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"projectId":{"type":"string","description":"The project ID (e.g. proj_xxx) or slug that owns the order","example":"proj_3c17f5a2"},"orderId":{"type":"string","description":"The order ID in your system","example":"1042"},"platform":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The platform (e.g. shopify, woocommerce, etc.). Optional — an order sent without it is recorded with no platform","example":"shopify"},"paymentMethod":{"type":"string","enum":["credit_card","debit_card","pix","boleto","paypal","apple_pay","google_pay","samsung_pay","stripe_link","other"],"description":"The payment method"},"status":{"type":"string","enum":["paid","pending","rejected","refunded","canceled"],"description":"The status"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The currency in ISO 4217 format (e.g. USD, BRL, etc.) - defaults to the project currency if not provided","example":"USD"},"totalPrice":{"type":"number","exclusiveMinimum":0,"maximum":1000000,"description":"The total order price in floating point number (e.g. 10.4 for $10.40). Send the amount as a person would read it — Clakta stores it in the smallest unit of the order currency, so zero-decimal currencies such as JPY are kept whole (1040 stays 1040, not 104000)","example":10.4},"products":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"The product ID","example":"sku-1042"},"name":{"type":"string","description":"The product name","example":"Blue shirt"},"quantity":{"type":"number","minimum":1,"description":"The quantity","example":1},"price":{"type":"number","exclusiveMinimum":0,"maximum":1000000,"description":"The product price in floating point number (e.g. 10.4 for $10.40), quoted in the order currency","example":10.4}},"required":["id","name","quantity","price"]}},"tracking":{"default":{},"description":"The attribution parameters captured on your storefront. Every parameter is optional — an order sent without them is recorded as unattributed","type":"object","properties":{"clkt":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The Clakta tracking key","example":"clkt_7d41e0b9"},"utm_source":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The UTM source","example":"facebook"},"utm_medium":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The UTM medium","example":"cpc"},"utm_campaign":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The UTM campaign","example":"summer-sale"},"utm_content":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The UTM content","example":"video-a"},"domain":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The hostname of the site where the purchase originated (e.g. shop.example.com). Required for privacy_friendly projects with more than one tracking domain; optional otherwise"},"sessionId":{"description":"The Clakta tracking source session ID — used to attribute the order to its originating page-view session (OS / device / browser). For privacy_friendly projects this value is ignored and replaced by a server-computed anonymous session ID","anyOf":[{"type":"string"},{"type":"null"}]}}},"createdAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"The order created at, defaults to the current date","example":"2026-01-30T12:00:00.000Z"},"approvedDate":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"The order approved date","example":"2026-01-30T12:04:21.000Z"},"refundedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"The order refunded at"},"customer":{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The customer ID on Clakta (e.g. cust_xxx)","example":"cust_8f2a91c4"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The customer full name","example":"John Doe"},"email":{"anyOf":[{"type":"string","allOf":[{"pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},{"pattern":"^[^\\s@]+@[^\\s@]+\\.[^\\s@]+$"}]},{"type":"null"}],"description":"The customer email in RFC 5322 format (e.g. john.doe@example.com). Used to match the order to an existing customer when no `id` is given","example":"john.doe@example.com"},"phone":{"anyOf":[{"type":"string","pattern":"^\\+[1-9]\\d{1,14}$"},{"type":"null"}],"description":"The customer phone in E.164 format (e.g. +5511999999999)","example":"+5511999999999"},"gender":{"anyOf":[{"type":"string","enum":["male","female","other"]},{"type":"null"}],"description":"The customer gender"},"dateOfBirth":{"anyOf":[{"type":"string","format":"date","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"},{"type":"null"}],"description":"The customer date of birth in YYYY-MM-DD format (ISO 8601 date, e.g. 1990-03-15)","example":"1990-03-15"},"address":{"anyOf":[{"type":"object","properties":{"city":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The customer city","example":"São Paulo"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The customer state","example":"SP"},"postalCode":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The customer postal code (e.g. 1234567890)","example":"01310-100"},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The customer country in ISO 3166-1 alpha-2 format (e.g. BR, US, etc.)","example":"br"}}},{"type":"null"}],"description":"The customer address"},"ip":{"anyOf":[{"type":"string","pattern":"^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$|^([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}$"},{"type":"null"}],"description":"The shopper IP address (ipv4 or ipv6) as seen by your storefront — never your server's IP. For privacy_friendly projects it is only used to compute the anonymous daily session hash and is stored anonymized. Optional: omit it when you don't have access to it, and the order is attributed from the browser's purchase event instead","example":"203.0.113.42"},"userAgent":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"description":"The shopper raw User-Agent string, exactly as sent by their browser. For privacy_friendly projects it is combined with the IP and site domain to compute the anonymous session ID that links the order to its tracked session — without it the order still gets an anonymous daily identity, but it will not match tracked sessions"}},"description":"The customer. Every field is optional: send `id` or `email` to attach the order to a known customer, or omit both and it is attached to an anonymous visitor resolved from the browser session"}},"required":["projectId","orderId","paymentMethod","status","totalPrice","products","customer"],"title":"Order"}}}},"responses":{"201":{"description":"The created order","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"A confirmation message.","example":"Order created successfully"},"data":{"$ref":"#/components/schemas/OrderSchema"}},"required":["message","data"],"additionalProperties":false}}}},"400":{"description":"The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).","content":{"application/json":{"schema":{"x-speakeasy-name-override":"BadRequest","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["bad_request"],"description":"A short code indicating the error code returned.","example":"bad_request"},"message":{"x-speakeasy-error-message":true,"type":"string","description":"A human readable explanation of what went wrong.","example":"The requested resource was not found."},"doc_url":{"type":"string","description":"A link to our documentation with more details about this error code","example":"https://www.clakta.com/docs/api-reference/errors#bad-request"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Although the HTTP standard specifies \"unauthorized\", semantically this response means \"unauthenticated\". That is, the client must authenticate itself to get the requested response.","content":{"application/json":{"schema":{"x-speakeasy-name-override":"Unauthorized","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unauthorized"],"description":"A short code indicating the error code returned.","example":"unauthorized"},"message":{"x-speakeasy-error-message":true,"type":"string","description":"A human readable explanation of what went wrong.","example":"The requested resource was not found."},"doc_url":{"type":"string","description":"A link to our documentation with more details about this error code","example":"https://www.clakta.com/docs/api-reference/errors#unauthorized"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"The client does not have access rights to the content; that is, it is unauthorized, so the server is refusing to give the requested resource. Unlike 401 Unauthorized, the client's identity is known to the server.","content":{"application/json":{"schema":{"x-speakeasy-name-override":"Forbidden","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["forbidden"],"description":"A short code indicating the error code returned.","example":"forbidden"},"message":{"x-speakeasy-error-message":true,"type":"string","description":"A human readable explanation of what went wrong.","example":"The requested resource was not found."},"doc_url":{"type":"string","description":"A link to our documentation with more details about this error code","example":"https://www.clakta.com/docs/api-reference/errors#forbidden"}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"The server cannot find the requested resource.","content":{"application/json":{"schema":{"x-speakeasy-name-override":"NotFound","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["not_found"],"description":"A short code indicating the error code returned.","example":"not_found"},"message":{"x-speakeasy-error-message":true,"type":"string","description":"A human readable explanation of what went wrong.","example":"The requested resource was not found."},"doc_url":{"type":"string","description":"A link to our documentation with more details about this error code","example":"https://www.clakta.com/docs/api-reference/errors#not-found"}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"This response is sent when a request conflicts with the current state of the server.","content":{"application/json":{"schema":{"x-speakeasy-name-override":"Conflict","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["conflict"],"description":"A short code indicating the error code returned.","example":"conflict"},"message":{"x-speakeasy-error-message":true,"type":"string","description":"A human readable explanation of what went wrong.","example":"The requested resource was not found."},"doc_url":{"type":"string","description":"A link to our documentation with more details about this error code","example":"https://www.clakta.com/docs/api-reference/errors#conflict"}},"required":["code","message"]}},"required":["error"]}}}},"410":{"description":"This response is sent when the requested content has been permanently deleted from server, with no forwarding address.","content":{"application/json":{"schema":{"x-speakeasy-name-override":"InviteExpired","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["invite_expired"],"description":"A short code indicating the error code returned.","example":"invite_expired"},"message":{"x-speakeasy-error-message":true,"type":"string","description":"A human readable explanation of what went wrong.","example":"The requested resource was not found."},"doc_url":{"type":"string","description":"A link to our documentation with more details about this error code","example":"https://www.clakta.com/docs/api-reference/errors#invite-expired"}},"required":["code","message"]}},"required":["error"]}}}},"422":{"description":"The request was well-formed but was unable to be followed due to semantic errors.","content":{"application/json":{"schema":{"x-speakeasy-name-override":"UnprocessableEntity","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unprocessable_entity"],"description":"A short code indicating the error code returned.","example":"unprocessable_entity"},"message":{"x-speakeasy-error-message":true,"type":"string","description":"A human readable explanation of what went wrong.","example":"The requested resource was not found."},"doc_url":{"type":"string","description":"A link to our documentation with more details about this error code","example":"https://www.clakta.com/docs/api-reference/errors#unprocessable-entity"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"The user has sent too many requests in a given amount of time (\"rate limiting\")","content":{"application/json":{"schema":{"x-speakeasy-name-override":"RateLimitExceeded","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["rate_limit_exceeded"],"description":"A short code indicating the error code returned.","example":"rate_limit_exceeded"},"message":{"x-speakeasy-error-message":true,"type":"string","description":"A human readable explanation of what went wrong.","example":"The requested resource was not found."},"doc_url":{"type":"string","description":"A link to our documentation with more details about this error code","example":"https://www.clakta.com/docs/api-reference/errors#rate-limit-exceeded"}},"required":["code","message"]}},"required":["error"]}}}},"500":{"description":"The server has encountered a situation it does not know how to handle.","content":{"application/json":{"schema":{"x-speakeasy-name-override":"InternalServerError","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["internal_server_error"],"description":"A short code indicating the error code returned.","example":"internal_server_error"},"message":{"x-speakeasy-error-message":true,"type":"string","description":"A human readable explanation of what went wrong.","example":"The requested resource was not found."},"doc_url":{"type":"string","description":"A link to our documentation with more details about this error code","example":"https://www.clakta.com/docs/api-reference/errors#internal-server-error"}},"required":["code","message"]}},"required":["error"]}}}}}}},"/v1/orders/{orderId}":{"patch":{"operationId":"updateOrder","x-speakeasy-name-override":"update","summary":"Update an order","description":"Update an existing order. `orderId` is your own order ID — the value sent as `orderId` when the order was created — and the owning project is resolved from the `projectId` field in the request body.\n\nSend only the fields you want to change: `status`, `paymentMethod`, `platform`, `currency`, `totalPrice`, `createdAt`, `approvedDate` and `refundedAt` are all optional, but at least one must be present. `approvedDate` and `refundedAt` are nullable — send `null` to clear a date that was set before.\n\nMarking an order as `paid` stamps its approved date, and marking it as `refunded` stamps its refund date — each the first time it happens, never overwriting a date that is already set. Sending `approvedDate` or `refundedAt` yourself always takes precedence over that.\n\n`totalPrice` is a decimal in the order currency (`10.4` for $10.40) and is stored in that currency's smallest unit. Because decimal and zero-decimal currencies are stored at different scales, send `totalPrice` together with `currency` whenever you move an order between the two (e.g. USD to JPY).\n\nThe order's attribution — its `customer`, `products` and `tracking` — is resolved when the order is created and cannot be changed here.","tags":["Orders"],"security":[{"token":[]}],"parameters":[{"in":"path","name":"orderId","schema":{"type":"string","description":"The order ID in your own system.","example":"1042"},"required":true,"description":"The order ID in your own system."}],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"projectId":{"type":"string","description":"The project ID (e.g. proj_xxx) or slug that owns the order"},"status":{"description":"The new order status (e.g. refunded)","type":"string","enum":["paid","pending","rejected","refunded","canceled"]},"paymentMethod":{"description":"The new payment method","type":"string","enum":["credit_card","debit_card","pix","boleto","paypal","apple_pay","google_pay","samsung_pay","stripe_link","other"]},"platform":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The new platform (e.g. shopify, woocommerce, etc.). Send `null` to clear it","example":"shopify"},"currency":{"description":"The new currency in ISO 4217 format (e.g. USD, BRL, etc.). Send `totalPrice` alongside it when moving between a decimal and a zero-decimal currency (e.g. USD to JPY), since the two are stored at different scales","example":"USD","type":"string"},"totalPrice":{"description":"The new total order price in floating point number (e.g. 10.4 for $10.40), quoted in the order currency after this update is applied","example":10.4,"type":"number","exclusiveMinimum":0,"maximum":1000000},"createdAt":{"description":"The new order date","example":"2026-01-30T12:00:00.000Z","type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},"approvedDate":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"The new order approved date. Send `null` to clear it. When omitted, moving an order to `paid` stamps this automatically the first time it happens","example":"2026-01-30T12:04:21.000Z"},"refundedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"The new order refunded at. Send `null` to clear it. When omitted, moving an order to `refunded` stamps this automatically the first time it happens","example":"2026-02-02T09:15:00.000Z"}},"required":["projectId"],"title":"UpdateOrder"}}}},"responses":{"200":{"description":"The updated order","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"A confirmation message.","example":"Order updated successfully"},"data":{"$ref":"#/components/schemas/OrderSchema"}},"required":["message","data"],"additionalProperties":false}}}},"400":{"description":"The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).","content":{"application/json":{"schema":{"x-speakeasy-name-override":"BadRequest","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["bad_request"],"description":"A short code indicating the error code returned.","example":"bad_request"},"message":{"x-speakeasy-error-message":true,"type":"string","description":"A human readable explanation of what went wrong.","example":"The requested resource was not found."},"doc_url":{"type":"string","description":"A link to our documentation with more details about this error code","example":"https://www.clakta.com/docs/api-reference/errors#bad-request"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Although the HTTP standard specifies \"unauthorized\", semantically this response means \"unauthenticated\". That is, the client must authenticate itself to get the requested response.","content":{"application/json":{"schema":{"x-speakeasy-name-override":"Unauthorized","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unauthorized"],"description":"A short code indicating the error code returned.","example":"unauthorized"},"message":{"x-speakeasy-error-message":true,"type":"string","description":"A human readable explanation of what went wrong.","example":"The requested resource was not found."},"doc_url":{"type":"string","description":"A link to our documentation with more details about this error code","example":"https://www.clakta.com/docs/api-reference/errors#unauthorized"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"The client does not have access rights to the content; that is, it is unauthorized, so the server is refusing to give the requested resource. Unlike 401 Unauthorized, the client's identity is known to the server.","content":{"application/json":{"schema":{"x-speakeasy-name-override":"Forbidden","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["forbidden"],"description":"A short code indicating the error code returned.","example":"forbidden"},"message":{"x-speakeasy-error-message":true,"type":"string","description":"A human readable explanation of what went wrong.","example":"The requested resource was not found."},"doc_url":{"type":"string","description":"A link to our documentation with more details about this error code","example":"https://www.clakta.com/docs/api-reference/errors#forbidden"}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"The server cannot find the requested resource.","content":{"application/json":{"schema":{"x-speakeasy-name-override":"NotFound","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["not_found"],"description":"A short code indicating the error code returned.","example":"not_found"},"message":{"x-speakeasy-error-message":true,"type":"string","description":"A human readable explanation of what went wrong.","example":"The requested resource was not found."},"doc_url":{"type":"string","description":"A link to our documentation with more details about this error code","example":"https://www.clakta.com/docs/api-reference/errors#not-found"}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"This response is sent when a request conflicts with the current state of the server.","content":{"application/json":{"schema":{"x-speakeasy-name-override":"Conflict","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["conflict"],"description":"A short code indicating the error code returned.","example":"conflict"},"message":{"x-speakeasy-error-message":true,"type":"string","description":"A human readable explanation of what went wrong.","example":"The requested resource was not found."},"doc_url":{"type":"string","description":"A link to our documentation with more details about this error code","example":"https://www.clakta.com/docs/api-reference/errors#conflict"}},"required":["code","message"]}},"required":["error"]}}}},"410":{"description":"This response is sent when the requested content has been permanently deleted from server, with no forwarding address.","content":{"application/json":{"schema":{"x-speakeasy-name-override":"InviteExpired","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["invite_expired"],"description":"A short code indicating the error code returned.","example":"invite_expired"},"message":{"x-speakeasy-error-message":true,"type":"string","description":"A human readable explanation of what went wrong.","example":"The requested resource was not found."},"doc_url":{"type":"string","description":"A link to our documentation with more details about this error code","example":"https://www.clakta.com/docs/api-reference/errors#invite-expired"}},"required":["code","message"]}},"required":["error"]}}}},"422":{"description":"The request was well-formed but was unable to be followed due to semantic errors.","content":{"application/json":{"schema":{"x-speakeasy-name-override":"UnprocessableEntity","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unprocessable_entity"],"description":"A short code indicating the error code returned.","example":"unprocessable_entity"},"message":{"x-speakeasy-error-message":true,"type":"string","description":"A human readable explanation of what went wrong.","example":"The requested resource was not found."},"doc_url":{"type":"string","description":"A link to our documentation with more details about this error code","example":"https://www.clakta.com/docs/api-reference/errors#unprocessable-entity"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"The user has sent too many requests in a given amount of time (\"rate limiting\")","content":{"application/json":{"schema":{"x-speakeasy-name-override":"RateLimitExceeded","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["rate_limit_exceeded"],"description":"A short code indicating the error code returned.","example":"rate_limit_exceeded"},"message":{"x-speakeasy-error-message":true,"type":"string","description":"A human readable explanation of what went wrong.","example":"The requested resource was not found."},"doc_url":{"type":"string","description":"A link to our documentation with more details about this error code","example":"https://www.clakta.com/docs/api-reference/errors#rate-limit-exceeded"}},"required":["code","message"]}},"required":["error"]}}}},"500":{"description":"The server has encountered a situation it does not know how to handle.","content":{"application/json":{"schema":{"x-speakeasy-name-override":"InternalServerError","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["internal_server_error"],"description":"A short code indicating the error code returned.","example":"internal_server_error"},"message":{"x-speakeasy-error-message":true,"type":"string","description":"A human readable explanation of what went wrong.","example":"The requested resource was not found."},"doc_url":{"type":"string","description":"A link to our documentation with more details about this error code","example":"https://www.clakta.com/docs/api-reference/errors#internal-server-error"}},"required":["code","message"]}},"required":["error"]}}}}}},"delete":{"operationId":"deleteOrder","x-speakeasy-name-override":"delete","summary":"Delete an order","description":"Permanently delete an order and its line items. `orderId` is your own order ID — the value sent as `orderId` when the order was created. Because a `DELETE` carries no body, the owning project is passed as the `projectId` query parameter.","tags":["Orders"],"security":[{"token":[]}],"parameters":[{"in":"path","name":"orderId","schema":{"type":"string","description":"The order ID in your own system.","example":"1042"},"required":true,"description":"The order ID in your own system."},{"in":"query","name":"projectId","schema":{"type":"string","description":"The project ID (e.g. proj_xxx) or slug that owns the order.","example":"proj_3c17f5a2"},"required":true,"description":"The project ID (e.g. proj_xxx) or slug that owns the order."}],"responses":{"200":{"description":"The order was deleted","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","description":"A confirmation message.","example":"Order deleted successfully"},"deleted":{"type":"number","description":"The number of orders deleted.","example":1}},"required":["message","deleted"],"additionalProperties":false}}}},"400":{"description":"The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).","content":{"application/json":{"schema":{"x-speakeasy-name-override":"BadRequest","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["bad_request"],"description":"A short code indicating the error code returned.","example":"bad_request"},"message":{"x-speakeasy-error-message":true,"type":"string","description":"A human readable explanation of what went wrong.","example":"The requested resource was not found."},"doc_url":{"type":"string","description":"A link to our documentation with more details about this error code","example":"https://www.clakta.com/docs/api-reference/errors#bad-request"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Although the HTTP standard specifies \"unauthorized\", semantically this response means \"unauthenticated\". That is, the client must authenticate itself to get the requested response.","content":{"application/json":{"schema":{"x-speakeasy-name-override":"Unauthorized","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unauthorized"],"description":"A short code indicating the error code returned.","example":"unauthorized"},"message":{"x-speakeasy-error-message":true,"type":"string","description":"A human readable explanation of what went wrong.","example":"The requested resource was not found."},"doc_url":{"type":"string","description":"A link to our documentation with more details about this error code","example":"https://www.clakta.com/docs/api-reference/errors#unauthorized"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"The client does not have access rights to the content; that is, it is unauthorized, so the server is refusing to give the requested resource. Unlike 401 Unauthorized, the client's identity is known to the server.","content":{"application/json":{"schema":{"x-speakeasy-name-override":"Forbidden","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["forbidden"],"description":"A short code indicating the error code returned.","example":"forbidden"},"message":{"x-speakeasy-error-message":true,"type":"string","description":"A human readable explanation of what went wrong.","example":"The requested resource was not found."},"doc_url":{"type":"string","description":"A link to our documentation with more details about this error code","example":"https://www.clakta.com/docs/api-reference/errors#forbidden"}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"The server cannot find the requested resource.","content":{"application/json":{"schema":{"x-speakeasy-name-override":"NotFound","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["not_found"],"description":"A short code indicating the error code returned.","example":"not_found"},"message":{"x-speakeasy-error-message":true,"type":"string","description":"A human readable explanation of what went wrong.","example":"The requested resource was not found."},"doc_url":{"type":"string","description":"A link to our documentation with more details about this error code","example":"https://www.clakta.com/docs/api-reference/errors#not-found"}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"This response is sent when a request conflicts with the current state of the server.","content":{"application/json":{"schema":{"x-speakeasy-name-override":"Conflict","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["conflict"],"description":"A short code indicating the error code returned.","example":"conflict"},"message":{"x-speakeasy-error-message":true,"type":"string","description":"A human readable explanation of what went wrong.","example":"The requested resource was not found."},"doc_url":{"type":"string","description":"A link to our documentation with more details about this error code","example":"https://www.clakta.com/docs/api-reference/errors#conflict"}},"required":["code","message"]}},"required":["error"]}}}},"410":{"description":"This response is sent when the requested content has been permanently deleted from server, with no forwarding address.","content":{"application/json":{"schema":{"x-speakeasy-name-override":"InviteExpired","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["invite_expired"],"description":"A short code indicating the error code returned.","example":"invite_expired"},"message":{"x-speakeasy-error-message":true,"type":"string","description":"A human readable explanation of what went wrong.","example":"The requested resource was not found."},"doc_url":{"type":"string","description":"A link to our documentation with more details about this error code","example":"https://www.clakta.com/docs/api-reference/errors#invite-expired"}},"required":["code","message"]}},"required":["error"]}}}},"422":{"description":"The request was well-formed but was unable to be followed due to semantic errors.","content":{"application/json":{"schema":{"x-speakeasy-name-override":"UnprocessableEntity","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unprocessable_entity"],"description":"A short code indicating the error code returned.","example":"unprocessable_entity"},"message":{"x-speakeasy-error-message":true,"type":"string","description":"A human readable explanation of what went wrong.","example":"The requested resource was not found."},"doc_url":{"type":"string","description":"A link to our documentation with more details about this error code","example":"https://www.clakta.com/docs/api-reference/errors#unprocessable-entity"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"The user has sent too many requests in a given amount of time (\"rate limiting\")","content":{"application/json":{"schema":{"x-speakeasy-name-override":"RateLimitExceeded","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["rate_limit_exceeded"],"description":"A short code indicating the error code returned.","example":"rate_limit_exceeded"},"message":{"x-speakeasy-error-message":true,"type":"string","description":"A human readable explanation of what went wrong.","example":"The requested resource was not found."},"doc_url":{"type":"string","description":"A link to our documentation with more details about this error code","example":"https://www.clakta.com/docs/api-reference/errors#rate-limit-exceeded"}},"required":["code","message"]}},"required":["error"]}}}},"500":{"description":"The server has encountered a situation it does not know how to handle.","content":{"application/json":{"schema":{"x-speakeasy-name-override":"InternalServerError","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["internal_server_error"],"description":"A short code indicating the error code returned.","example":"internal_server_error"},"message":{"x-speakeasy-error-message":true,"type":"string","description":"A human readable explanation of what went wrong.","example":"The requested resource was not found."},"doc_url":{"type":"string","description":"A link to our documentation with more details about this error code","example":"https://www.clakta.com/docs/api-reference/errors#internal-server-error"}},"required":["code","message"]}},"required":["error"]}}}}}}}},"components":{"schemas":{"OrderSchema":{"type":"object","properties":{"id":{"type":"string","description":"The unique Clakta ID of the order (e.g. ord_xxx).","example":"ord_5b93e17a"},"projectId":{"type":"string","description":"The ID of the project that owns the order.","example":"proj_3c17f5a2"},"customerId":{"type":"string","description":"The ID of the customer the order is attached to.","example":"cust_8f2a91c4"},"externalId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The order ID in your own system, as sent on creation.","example":"1042"},"platform":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The platform the order originated from (e.g. shopify), or null when the order was recorded without one.","example":"shopify"},"paymentMethod":{"type":"string","enum":["credit_card","debit_card","pix","boleto","paypal","apple_pay","google_pay","samsung_pay","stripe_link","other"],"description":"The payment method used for the order."},"status":{"type":"string","enum":["paid","pending","rejected","refunded","canceled"],"description":"The current status of the order."},"currency":{"type":"string","description":"The order currency in ISO 4217 format (e.g. USD).","example":"USD"},"totalPrice":{"type":"number","description":"The total order price in the smallest unit of the order currency (e.g. 1040 for $10.40, and 1040 for ¥1040 since JPY has no minor unit).","example":1040},"products":{"type":"array","items":{"type":"object","properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The Clakta product ID, when the product resolved.","example":"prod_44c1e8b0"},"name":{"type":"string","description":"The product name.","example":"Blue shirt"},"quantity":{"type":"number","description":"The quantity ordered.","example":1},"price":{"type":"number","description":"The product price in the smallest unit of the order currency (e.g. 1040 for $10.40).","example":1040}},"required":["id","name","quantity","price"],"additionalProperties":false},"description":"The product lines of the order."},"tracking":{"type":"object","properties":{"clkt":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The Clakta tracking key","example":"clkt_7d41e0b9"},"utm_source":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The UTM source","example":"facebook"},"utm_medium":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The UTM medium","example":"cpc"},"utm_campaign":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The UTM campaign","example":"summer-sale"},"utm_content":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The UTM content","example":"video-a"},"domain":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The hostname of the site where the purchase originated (e.g. shop.example.com). Required for privacy_friendly projects with more than one tracking domain; optional otherwise"},"sessionId":{"description":"The Clakta tracking source session ID — used to attribute the order to its originating page-view session (OS / device / browser). For privacy_friendly projects this value is ignored and replaced by a server-computed anonymous session ID","anyOf":[{"type":"string"},{"type":"null"}]}},"additionalProperties":false,"description":"The tracking parameters the order was attributed with."},"adPlatform":{"anyOf":[{"type":"string","enum":["meta","google","tiktok","kwai","pinterest","x","linkedin","taboola"]},{"type":"null"}],"description":"The ad platform the order was attributed to."},"campaignId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The ad campaign ID the order was attributed to.","example":"120210000000000000"},"adSetId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The ad set ID the order was attributed to.","example":"120210000000000001"},"adId":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"The ad ID the order was attributed to.","example":"120210000000000002"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$","description":"The date the order was placed (ISO 8601).","example":"2026-01-30T12:00:00.000Z"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$","description":"The date the order was last updated (ISO 8601).","example":"2026-01-30T12:04:21.000Z"},"approvedDate":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"The date the order was approved (ISO 8601).","example":"2026-01-30T12:04:21.000Z"},"refundedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"},{"type":"null"}],"description":"The date the order was refunded (ISO 8601)."}},"required":["id","projectId","customerId","externalId","platform","paymentMethod","status","currency","totalPrice","products","tracking","adPlatform","campaignId","adSetId","adId","createdAt","updatedAt","approvedDate","refundedAt"],"additionalProperties":false,"title":"Order"}},"responses":{"400":{"description":"The server cannot or will not process the request due to something that is perceived to be a client error (e.g., malformed request syntax, invalid request message framing, or deceptive request routing).","content":{"application/json":{"schema":{"x-speakeasy-name-override":"BadRequest","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["bad_request"],"description":"A short code indicating the error code returned.","example":"bad_request"},"message":{"x-speakeasy-error-message":true,"type":"string","description":"A human readable explanation of what went wrong.","example":"The requested resource was not found."},"doc_url":{"type":"string","description":"A link to our documentation with more details about this error code","example":"https://www.clakta.com/docs/api-reference/errors#bad-request"}},"required":["code","message"]}},"required":["error"]}}}},"401":{"description":"Although the HTTP standard specifies \"unauthorized\", semantically this response means \"unauthenticated\". That is, the client must authenticate itself to get the requested response.","content":{"application/json":{"schema":{"x-speakeasy-name-override":"Unauthorized","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unauthorized"],"description":"A short code indicating the error code returned.","example":"unauthorized"},"message":{"x-speakeasy-error-message":true,"type":"string","description":"A human readable explanation of what went wrong.","example":"The requested resource was not found."},"doc_url":{"type":"string","description":"A link to our documentation with more details about this error code","example":"https://www.clakta.com/docs/api-reference/errors#unauthorized"}},"required":["code","message"]}},"required":["error"]}}}},"403":{"description":"The client does not have access rights to the content; that is, it is unauthorized, so the server is refusing to give the requested resource. Unlike 401 Unauthorized, the client's identity is known to the server.","content":{"application/json":{"schema":{"x-speakeasy-name-override":"Forbidden","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["forbidden"],"description":"A short code indicating the error code returned.","example":"forbidden"},"message":{"x-speakeasy-error-message":true,"type":"string","description":"A human readable explanation of what went wrong.","example":"The requested resource was not found."},"doc_url":{"type":"string","description":"A link to our documentation with more details about this error code","example":"https://www.clakta.com/docs/api-reference/errors#forbidden"}},"required":["code","message"]}},"required":["error"]}}}},"404":{"description":"The server cannot find the requested resource.","content":{"application/json":{"schema":{"x-speakeasy-name-override":"NotFound","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["not_found"],"description":"A short code indicating the error code returned.","example":"not_found"},"message":{"x-speakeasy-error-message":true,"type":"string","description":"A human readable explanation of what went wrong.","example":"The requested resource was not found."},"doc_url":{"type":"string","description":"A link to our documentation with more details about this error code","example":"https://www.clakta.com/docs/api-reference/errors#not-found"}},"required":["code","message"]}},"required":["error"]}}}},"409":{"description":"This response is sent when a request conflicts with the current state of the server.","content":{"application/json":{"schema":{"x-speakeasy-name-override":"Conflict","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["conflict"],"description":"A short code indicating the error code returned.","example":"conflict"},"message":{"x-speakeasy-error-message":true,"type":"string","description":"A human readable explanation of what went wrong.","example":"The requested resource was not found."},"doc_url":{"type":"string","description":"A link to our documentation with more details about this error code","example":"https://www.clakta.com/docs/api-reference/errors#conflict"}},"required":["code","message"]}},"required":["error"]}}}},"410":{"description":"This response is sent when the requested content has been permanently deleted from server, with no forwarding address.","content":{"application/json":{"schema":{"x-speakeasy-name-override":"InviteExpired","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["invite_expired"],"description":"A short code indicating the error code returned.","example":"invite_expired"},"message":{"x-speakeasy-error-message":true,"type":"string","description":"A human readable explanation of what went wrong.","example":"The requested resource was not found."},"doc_url":{"type":"string","description":"A link to our documentation with more details about this error code","example":"https://www.clakta.com/docs/api-reference/errors#invite-expired"}},"required":["code","message"]}},"required":["error"]}}}},"422":{"description":"The request was well-formed but was unable to be followed due to semantic errors.","content":{"application/json":{"schema":{"x-speakeasy-name-override":"UnprocessableEntity","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["unprocessable_entity"],"description":"A short code indicating the error code returned.","example":"unprocessable_entity"},"message":{"x-speakeasy-error-message":true,"type":"string","description":"A human readable explanation of what went wrong.","example":"The requested resource was not found."},"doc_url":{"type":"string","description":"A link to our documentation with more details about this error code","example":"https://www.clakta.com/docs/api-reference/errors#unprocessable-entity"}},"required":["code","message"]}},"required":["error"]}}}},"429":{"description":"The user has sent too many requests in a given amount of time (\"rate limiting\")","content":{"application/json":{"schema":{"x-speakeasy-name-override":"RateLimitExceeded","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["rate_limit_exceeded"],"description":"A short code indicating the error code returned.","example":"rate_limit_exceeded"},"message":{"x-speakeasy-error-message":true,"type":"string","description":"A human readable explanation of what went wrong.","example":"The requested resource was not found."},"doc_url":{"type":"string","description":"A link to our documentation with more details about this error code","example":"https://www.clakta.com/docs/api-reference/errors#rate-limit-exceeded"}},"required":["code","message"]}},"required":["error"]}}}},"500":{"description":"The server has encountered a situation it does not know how to handle.","content":{"application/json":{"schema":{"x-speakeasy-name-override":"InternalServerError","type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string","enum":["internal_server_error"],"description":"A short code indicating the error code returned.","example":"internal_server_error"},"message":{"x-speakeasy-error-message":true,"type":"string","description":"A human readable explanation of what went wrong.","example":"The requested resource was not found."},"doc_url":{"type":"string","description":"A link to our documentation with more details about this error code","example":"https://www.clakta.com/docs/api-reference/errors#internal-server-error"}},"required":["code","message"]}},"required":["error"]}}}}},"securitySchemes":{"token":{"type":"http","description":"Default authentication mechanism","scheme":"bearer","x-speakeasy-example":"CLAKTA_API_KEY"}}}}