Preskočiť na obsah
Pre vývojárov

Referencia API

Všetky adresy API poskladané priamo zo špecifikácie OpenAPI. Názvy polí a podrobné popisy sú po anglicky.

Na tejto stránke

Základná adresa je https://api.ottoai.sk. Každá požiadavka posiela Authorization: Bearer <kľúč>. Strojovo čitateľná podoba je v openapi.json.

Account

GET/v1/meOprávnenie read

Kto som: firma, plán, funkcie a zoznam udalostí

Odpoveď 200

  • tenant object
    • id string (uuid)
    • name string
  • plan string
  • features object
    • api boolean
    • webhooks boolean
    • whiteLabel boolean
    • inAppChat boolean
  • limits object
    • conversationsPerMonth integer | null
  • events string[]

Chyby: 401 403 429

GET/v1/statsOprávnenie read

Počty a výsledky konverzácií v čase

Without parameters: the last 30 days by day in Europe/Bratislava. The range is at most 400 days. resolvedByOtto + unanswered are the conversations Otto handled alone, which the panel shows as solved by Otto.

Parametre

  • since query · string (date-time) nepovinné Created at or after this time.
  • until query · string (date-time) nepovinné Created before this time.
  • interval query · day | week | month nepovinné Weeks start on Monday.
  • timezone query · string nepovinné IANA time zone for the series boundaries.

Odpoveď 200

  • conversationsTotal integer
  • conversationsMonth integer
  • products integer
  • range object
    • since string (date-time)
    • until string (date-time)
    • interval day | week | month
    • timezone string
    • totals object
      • conversations integer
      • resolvedByOtto integer
      • unanswered integer
      • handedOff integer
      • missed integer
      • ratingUp integer
      • ratingDown integer
      • leads integer
      • returns integer
    • series object[]
      • date string (date) First day of the interval in the given time zone.
      • conversations integer
      • resolvedByOtto integer
      • unanswered integer
      • handedOff integer
      • missed integer
      • ratingUp integer
      • ratingDown integer

Chyby: 400 401 403 429

GET/v1/usageOprávnenie read

Spotreba odpovedí v tomto mesiaci

With a subscription the period runs from the day of payment to the same day next month, without one it is the calendar month. limit and remaining are null on an unlimited plan.

Odpoveď 200

  • month string
  • periodStart string (date-time)
  • periodEnd string (date-time) When the limit resets.
  • conversations integer
  • limit integer | null
  • remaining integer | null

Chyby: 401 403 429

Ask

POST/v1/askOprávnenie ask

Opýtať sa Otta a počkať na odpoveď

Call it from your server, the key does not belong in a mobile app or website code. Sends one customer message down the same path as the chat on your site: the same answer, the same checks before anything goes out, the same answer limit, message.created webhooks and encrypted storage. The conversation shows up in the panel's Inbox with the channel API. The call returns when the answer is ready, so set your client timeout to at least 60 seconds. Without conversationId a new conversation starts; send conversationId from the response to continue it. Only conversations started through the API can be continued, others return 409 conv_other_channel. Limit: 30 questions per minute per key and 60 per company, on top of the general API limit. A question that gets an answer counts as one answer of your plan. status tells you what happened: answered, handoff (Otto passes it to a colleague), with_operator (a colleague has the conversation, answer is null and the message is waiting for them) or stopped (the plan limit is reached or the service is paused; answer holds the same sentence the chat shows and the message stays in the Inbox). A colleague's reply reaches you through the message.created webhook or GET /v1/conversations/{id}.

Telo požiadavky

  • message string What the customer wrote.
  • conversationId string (uuid) nepovinné From the previous response, to continue the conversation.
  • idempotencyKey string (uuid) nepovinné A new UUID for every question. Repeat it when you retry: you get the stored answer and no other answer is spent.
  • language sk | cs | en nepovinné The language of your page. Otto replies in the language the customer writes in and uses this for a short message whose language cannot be told.
  • identity string nepovinné The signed identity token of your signed-in customer, the same one the chat on your site uses.
  • page object nepovinné
    • url string (uri) nepovinné
    • title string nepovinné
  • customer object nepovinné
    • name string nepovinné
    • email string nepovinné
    • phone string nepovinné

Odpoveď 200

  • conversationId string (uuid)
  • messageId string | null Otto's message, the same id as in the message.created webhook. null when status is with_operator.
  • status answered | handoff | with_operator | stopped
  • answer string | null The checked answer, the same text the chat on your site shows. It may contain **bold** and links. null when status is with_operator.
  • followup string | null A follow-up question for the customer, shown after the answer.
  • suggestions string[] Short replies the customer can tap.
  • products object[]
    • title string
    • url string | null
    • price number | string | null
    • currency string | null
    • image string | null
    • availability string | null
  • handoff boolean Otto wants to pass the conversation to a colleague.
  • needsContact boolean Where the chat would show the contact form. Ask for an email or phone and send it to POST /v1/conversations/{id}/contact.
  • contactBeforeHandoff boolean The handover waits for that contact.
  • returnForm claim | withdrawal | null Where the chat would show the complaint or return form. The API has no such form: show your own or send the customer to your complaints page.
  • language string | null
  • customerVerified boolean The identity token was accepted.

Chyby: 400 401 403 404 409 429

POST/v1/chatOprávnenie ask

Opýtať sa Otta a sledovať stav cez SSE

The same request and the same result as POST /v1/ask, delivered as text/event-stream so your app can show that Otto is working. This is not token streaming: every answer is checked before it goes out, so its text arrives in one piece at the end. Events: status with { state: processing, elapsedMs } right away and then every 5 seconds; answer with the same object as POST /v1/ask, or error with { error, errcode, status, requestId }; done always comes last. A wrong key, permission, plan, parameter, limit or conversation returns an ordinary JSON error before the stream opens. When the connection drops, Otto still finishes, stores and counts the answer. Repeat the question with the same idempotencyKey to get that answer without spending another one.

Telo požiadavky

  • message string What the customer wrote.
  • conversationId string (uuid) nepovinné From the previous response, to continue the conversation.
  • idempotencyKey string (uuid) nepovinné A new UUID for every question. Repeat it when you retry: you get the stored answer and no other answer is spent.
  • language sk | cs | en nepovinné The language of your page. Otto replies in the language the customer writes in and uses this for a short message whose language cannot be told.
  • identity string nepovinné The signed identity token of your signed-in customer, the same one the chat on your site uses.
  • page object nepovinné
    • url string (uri) nepovinné
    • title string nepovinné
  • customer object nepovinné
    • name string nepovinné
    • email string nepovinné
    • phone string nepovinné

Chyby: 400 401 403 404 409 429

POST/v1/conversations/{id}/contactOprávnenie ask

Odovzdať kontakt na zákazníka

Does what the contact form in the chat does, when an answer says needsContact. Send at least an email or a phone number. When contactBeforeHandoff was true, the conversation goes to a colleague now and handedOff is true. Only for conversations started through the API.

Parametre

  • id path · string (uuid)

Telo požiadavky

  • name string nepovinné
  • email string nepovinné
  • phone string nepovinné
  • note string nepovinné
  • identity string nepovinné The identity token, needed when a verified customer owns the conversation.

Odpoveď 200

  • ok true
  • handedOff boolean

Chyby: 400 401 403 404 409 429

Conversations

GET/v1/conversationsOprávnenie read

Zoznam konverzácií

Newest activity first. Returns no message text, use GET /v1/conversations/{id} for that.

Parametre

  • status query · bot | human | resolved nepovinné
  • outcome query · resolved_by_otto | unanswered | handed_off | missed nepovinné
  • lang query · string nepovinné Two-letter language code, for example sk, cs or en.
  • q query · string nepovinné Words to find in the message text or the colleague's name. Searches the newest 20,000 messages, searchTruncated is true when there were more. At most 20 searches per minute.
  • tag query · string nepovinné Only conversations with this tag: its name (any letter case) or id from GET /v1/tags. An unknown tag returns 400.
  • since query · string (date-time) nepovinné Created at or after this time.
  • until query · string (date-time) nepovinné Created before this time.
  • updatedSince query · string (date-time) nepovinné Changed at or after this time.
  • before query · string nepovinné nextBefore from the previous page. Opaque, do not build it yourself.
  • limit query · integer nepovinné

Odpoveď 200

  • conversations Conversation[]
    • id string (uuid)
    • status bot | human | resolved
    • outcome resolved_by_otto | unanswered | handed_off | missed
    • lang string | null
    • channel web | messenger | instagram | api Where the customer writes from.
    • tags string[] Names of the tags in the order they were added. Changing them changes updatedAt.
    • rating 1 | -1 | null
    • createdAt string (date-time)
    • lastAt string | null (date-time)
    • updatedAt string (date-time)
    • customerId string | null Your customer ID from a verified identity token (sub), null for anonymous chats.
  • nextBefore string | null
  • searchTruncated boolean nepovinné Only with q.

Chyby: 400 401 403 429

GET/v1/conversations/{id}Oprávnenie read

Jedna konverzácia aj so správami

The only endpoint that returns message text. At most 500 messages, oldest first.

Parametre

  • id path · string (uuid)

Odpoveď 200

  • conversation ConversationDetail
    • id string (uuid)
    • status bot | human | resolved
    • outcome resolved_by_otto | unanswered | handed_off | missed
    • lang string | null
    • channel web | messenger | instagram | api Where the customer writes from.
    • tags string[] Names of the tags in the order they were added.
    • rating 1 | -1 | null
    • createdAt string (date-time)
    • lastAt string | null (date-time)
    • customerId string | null
    • customer Customer The customer your site verified with a signed token, null for anonymous chats.
      • id string
      • email string | null
      • name string | null
      • phone string | null
      • verifiedAt string | null (date-time)
  • messages Message[]
    • role user | bot | operator
    • kind string | null
    • text string
    • at string (date-time)
    • deletedAt string (date-time) nepovinné When the operator deleted the message. The customer no longer sees it, the text stays for you.

Chyby: 401 403 404 429

DELETE/v1/conversations/{id}Oprávnenie write

Vymazať konverzáciu

Erases the conversation with its messages, notes, contacts, complaints and returns with their photos and unanswered questions, the same as deleting it in the panel. Use it when a customer asks you to erase their data. It cannot be undone.

Parametre

  • id path · string (uuid)

Odpoveď 200

  • ok true

Chyby: 401 403 404 429

POST/v1/conversations/{id}/messagesOprávnenie write

Odpovedať zákazníkovi

Sends a message as a colleague, exactly like replying in the panel. The conversation switches to human and Otto stays quiet in it. A customer who is not on the site gets the reply by email.

Parametre

  • id path · string (uuid)

Telo požiadavky

  • text string
  • operatorId string (uuid) nepovinné Team member from GET /v1/operators. Without it the author is shown as API.

Odpoveď 200

  • ok true
  • message object
    • role "operator"
    • kind "text"
    • text string
    • author string
    • at string (date-time)
  • conversation object
    • id string (uuid)
    • status "human"

Chyby: 400 401 403 404 429

POST/v1/conversations/{id}/notesOprávnenie write

Pridať internú poznámku

The customer never sees notes.

Parametre

  • id path · string (uuid)

Telo požiadavky

  • text string
  • operatorId string (uuid) nepovinné Team member from GET /v1/operators. Without it the author is shown as API.

Odpoveď 200

  • ok true
  • note object
    • id string
    • author string
    • text string
    • at string (date-time)

Chyby: 400 401 403 404 429

POST/v1/conversations/{id}/takeoverOprávnenie write

Prevziať konverzáciu

Otto stops answering. Without operatorId the current assignee stays. Sends the conversation.operator_joined event.

Parametre

  • id path · string (uuid)

Telo požiadavky

  • operatorId string (uuid) nepovinné Team member from GET /v1/operators. Without it the author is shown as API.

Odpoveď 200

  • ok true
  • conversation object
    • id string (uuid)
    • status "human"
    • assignee string | null (uuid)

Chyby: 400 401 403 404 409 429

POST/v1/conversations/{id}/releaseOprávnenie write

Vrátiť konverzáciu Ottovi

Otto answers on its own again and nobody is assigned.

Parametre

  • id path · string (uuid)

Odpoveď 200

  • ok true
  • conversation object
    • id string (uuid)
    • status "bot"
    • assignee null

Chyby: 401 403 404 409 429

POST/v1/conversations/{id}/resolveOprávnenie write

Vyriešiť konverzáciu

Like Resolve in the panel. Contacts the customer left in this conversation are marked handled, each with the lead.updated event. Sends the conversation.resolved event.

Parametre

  • id path · string (uuid)

Odpoveď 200

  • ok true
  • conversation object
    • id string (uuid)
    • status "resolved"

Chyby: 401 403 404 429

POST/v1/conversations/{id}/reopenOprávnenie write

Otvoriť vyriešenú konverzáciu

The conversation returns to human.

Parametre

  • id path · string (uuid)

Odpoveď 200

  • ok true
  • conversation object
    • id string (uuid)
    • status "human"

Chyby: 401 403 404 429

Tags

PATCH/v1/conversations/{id}/tagsOprávnenie write

Pridať alebo odobrať štítky

Like tagging in the panel. add and remove take tag names (any letter case) or ids from GET /v1/tags; the tag must exist, create it with POST /v1/tags. Send at least one non-empty list; empty or whitespace-only names are rejected. Adding a tag the conversation has, or removing one it does not, changes nothing. A conversation carries at most 10 tags (errcode too_many_tags), an unknown tag returns 404 tag_not_found.

Parametre

  • id path · string (uuid)

Telo požiadavky

  • add string[] nepovinné Tag names or ids to add.
  • remove string[] nepovinné Tag names or ids to remove.

Odpoveď 200

  • ok true
  • conversation object
    • id string (uuid)
    • tags string[]

Chyby: 400 401 403 404 409 429

GET/v1/tagsOprávnenie read

Štítky na konverzácie

Alphabetical. conversations says how many conversations carry the tag.

Odpoveď 200

  • tags Tag[]
    • id string (uuid)
    • name string
    • color blue | green | yellow | orange | red | pink | purple | teal | gray
    • conversations integer How many conversations carry the tag.

Chyby: 401 403 429

POST/v1/tagsOprávnenie write

Vytvoriť štítok

At most 50 tags per company (errcode tag_limit). Names are unique regardless of letter case (errcode tag_exists). Without color the tag is blue.

Telo požiadavky

  • name TagName
  • color blue | green | yellow | orange | red | pink | purple | teal | gray nepovinné

Odpoveď 200

  • ok true
  • tag Tag
    • id string (uuid)
    • name string
    • color blue | green | yellow | orange | red | pink | purple | teal | gray
    • conversations integer How many conversations carry the tag.

Chyby: 400 401 403 409 429

PATCH/v1/tags/{id}Oprávnenie write

Premenovať štítok alebo zmeniť farbu

Conversations keep the tag under its new name. Renaming and deleting tags is limited to 30 changes per minute per company (errcode rate_limited).

Parametre

  • id path · string (uuid)

Telo požiadavky

  • name TagName nepovinné
  • color blue | green | yellow | orange | red | pink | purple | teal | gray nepovinné

Odpoveď 200

  • ok true
  • tag Tag
    • id string (uuid)
    • name string
    • color blue | green | yellow | orange | red | pink | purple | teal | gray
    • conversations integer How many conversations carry the tag.

Chyby: 400 401 403 404 409 429

DELETE/v1/tags/{id}Oprávnenie write

Zmazať štítok

The tag disappears from every conversation that carried it. It cannot be undone.

Parametre

  • id path · string (uuid)

Odpoveď 200

  • ok true

Chyby: 401 403 404 429

Leads

GET/v1/leadsOprávnenie read

Kontakty, ktoré zákazníci nechali

Parametre

  • since query · string (date-time) nepovinné Created at or after this time.
  • until query · string (date-time) nepovinné Created before this time.
  • before query · string nepovinné nextBefore from the previous page. Opaque, do not build it yourself.
  • limit query · integer nepovinné

Odpoveď 200

  • leads Lead[]
    • id string (uuid)
    • conversationId string | null (uuid)
    • name string
    • email string
    • phone string
    • note string
    • handled boolean
    • createdAt string (date-time)
  • nextBefore string | null

Chyby: 400 401 403 429

PATCH/v1/leads/{id}Oprávnenie write

Označiť kontakt ako vybavený

Sends the lead.updated event when the value changes.

Parametre

  • id path · string (uuid)

Telo požiadavky

  • handled boolean

Odpoveď 200

  • ok true
  • lead object
    • id string (uuid)
    • handled boolean

Chyby: 400 401 403 404 429

DELETE/v1/leads/{id}Oprávnenie write

Vymazať kontakt

Erases one contact the customer left. The conversation stays, erase it with DELETE /v1/conversations/{id}. It cannot be undone.

Parametre

  • id path · string (uuid)

Odpoveď 200

  • ok true

Chyby: 401 403 404 429

Returns

GET/v1/returnsOprávnenie read

Reklamácie a vrátenia

Parametre

  • status query · new | approved | rejected | resolved nepovinné
  • kind query · claim | withdrawal nepovinné
  • since query · string (date-time) nepovinné Created at or after this time.
  • until query · string (date-time) nepovinné Created before this time.
  • updatedSince query · string (date-time) nepovinné Changed at or after this time.
  • before query · string nepovinné nextBefore from the previous page. Opaque, do not build it yourself.
  • limit query · integer nepovinné

Odpoveď 200

  • returns Return[]
    • id string
    • kind claim | withdrawal
    • status new | approved | rejected | resolved
    • orderId string
    • issue string
    • want string
    • name string
    • email string
    • conversationId string | null (uuid)
    • createdAt string (date-time)
    • decidedAt string | null (date-time)
  • nextBefore string | null

Chyby: 400 401 403 429

PATCH/v1/returns/{id}Oprávnenie write

Rozhodnúť o reklamácii alebo vrátení

Like the decision in the panel. notify: true emails the customer the decision and your note. Sends the return.updated event.

Parametre

  • id path · string

Telo požiadavky

  • status new | approved | rejected | resolved
  • note string nepovinné
  • notify boolean nepovinné

Odpoveď 200

  • ok true
  • return object
    • id string
    • status string

Chyby: 400 401 403 404 429

Unanswered

GET/v1/unansweredOprávnenie read

Otázky, na ktoré chýba odpoveď

Parametre

  • since query · string (date-time) nepovinné Created at or after this time.
  • until query · string (date-time) nepovinné Created before this time.
  • before query · string nepovinné nextBefore from the previous page. Opaque, do not build it yourself.
  • limit query · integer nepovinné

Odpoveď 200

  • unanswered Unanswered[]
    • id string
    • conversationId string | null (uuid)
    • question string
    • at string (date-time)
  • nextBefore string | null

Chyby: 400 401 403 429

POST/v1/unanswered/{id}/dismissOprávnenie write

Skryť otázku zo zoznamu

Parametre

  • id path · string

Odpoveď 200

  • ok true

Chyby: 401 403 404 429

Catalogue

GET/v1/productsOprávnenie read

Produkty, ktoré Otto pozná

Parametre

  • before query · string nepovinné nextBefore from the previous page. Opaque, do not build it yourself.
  • limit query · integer nepovinné

Odpoveď 200

  • products Product[]
    • id string
    • externalId string | null
    • title string
    • url string | null
    • meta object
    • updatedAt string (date-time)
  • nextBefore string | null

Chyby: 401 403 429

POST/v1/productsOprávnenie catalogue

Pridať alebo zmeniť produkty

Only what you send, nothing is deleted. At most 500 at once. Meant for price and stock changes.

Telo požiadavky

  • products ProductInput[]
    • id string Your product id. externalId works too.
    • title string name works too.
    • description string nepovinné
    • url string nepovinné
    • image string nepovinné imageUrl works too.
    • price number nepovinné
    • currency string nepovinné
    • availability string nepovinné
    • category string nepovinné
    • manufacturer string nepovinné
    • params object nepovinné

Odpoveď 200

  • ok true
  • products integer

Chyby: 400 401 403 429

POST/v1/products/snapshotOprávnenie catalogue

Nahradiť celý katalóg

Products missing from the snapshot are deleted. At most 5000 at once and 12 times per hour. If the snapshot would delete more products than it contains, the missing products are kept the first time and the response has warning, errcode prune_skipped and pendingRemoval. Send the same list again to delete them, otherwise they go with the first smaller snapshot you send after 24 hours. A snapshot with none of the ids we hold and at least 90% of their count (for example after switching to new ids) deletes the old products right away. Products read from your website are always replaced, so removed can be above 0 even with the warning. A snapshot with fewer than 5 products deletes nothing.

Telo požiadavky

  • products ProductInput[]
    • id string Your product id. externalId works too.
    • title string name works too.
    • description string nepovinné
    • url string nepovinné
    • image string nepovinné imageUrl works too.
    • price number nepovinné
    • currency string nepovinné
    • availability string nepovinné
    • category string nepovinné
    • manufacturer string nepovinné
    • params object nepovinné

Odpoveď 200

  • ok true
  • products integer
  • removed integer
  • currency string | null nepovinné
  • warning string nepovinné
  • errcode "prune_skipped" nepovinné
  • pendingRemoval integer nepovinné

Chyby: 400 401 403 429

DELETE/v1/products/{id}Oprávnenie catalogue

Zmazať jeden produkt

Parametre

  • id path · string

Odpoveď 200

  • ok true

Chyby: 401 403 404 429

Knowledge

GET/v1/knowledgeOprávnenie read

Znalosti okrem produktov

source faq was added by you, page was read from your website. Only faq records can be deleted.

Parametre

  • before query · string nepovinné nextBefore from the previous page. Opaque, do not build it yourself.
  • limit query · integer nepovinné

Odpoveď 200

  • knowledge Knowledge[]
    • id string
    • source faq | page
    • title string
    • content string
    • url string | null
    • updatedAt string (date-time)
    • deletable boolean
  • nextBefore string | null

Chyby: 401 403 429

POST/v1/knowledgeOprávnenie write

Pridať znalosť

Otto uses it right away. Content with an unfilled placeholder in square brackets, such as [delivery time] or [your e-mail], is refused with 400 and errcode kb_placeholder, and placeholders lists them. Markdown links and markers such as [1] are fine.

Telo požiadavky

  • title string
  • content string

Odpoveď 200

  • ok true
  • id string

Chyby: 400 401 403 429

DELETE/v1/knowledge/{id}Oprávnenie write

Zmazať vlastnú znalosť

Parametre

  • id path · string

Odpoveď 200

  • ok true

Chyby: 401 403 404 429

Team

GET/v1/operatorsOprávnenie read

Váš tím

Use id as operatorId in conversation actions.

Odpoveď 200

  • operators Operator[]
    • id string (uuid)
    • name string
    • email string
    • role owner | operator

Chyby: 401 403 429

Webhooks

GET/v1/webhooksOprávnenie webhooks_write

Zoznam webhookov

Needs the webhooks_write permission. The address is shortened and the secret is never returned here, it comes only once when the webhook is created.

Odpoveď 200

  • webhooks Webhook[]
    • id string (uuid)
    • name string
    • url string
    • format json | discord | slack
    • events string[]
    • disabled boolean
    • createdAt string (date-time)

Chyby: 401 403 429

POST/v1/webhooksOprávnenie webhooks_write

Založiť webhook

Does what adding a webhook in the panel does: the same address check (only public https or http addresses, never your own Otto domains or an internal network), the same limit of 10 webhooks and the same e-mail to the account owner. Needs the webhooks_write permission. The secret, with which Otto signs the events, is returned only in this response, store it. The format follows the address: Discord and Slack addresses get a ready message, everything else gets the JSON envelope. Use it for REST hooks, for example from Zapier or Make: subscribe when the user switches the trigger on, delete when they switch it off.

Telo požiadavky

  • url string
  • name string nepovinné Defaults to the host of the address.
  • events conversation.started | conversation.handoff | conversation.operator_joined | conversation.resolved | conversation.rated | message.created | lead.created | lead.updated | return.created | return.updated | unanswered.created | catalog.synced | catalog.failed | usage.threshold[]

Odpoveď 200

  • id string (uuid)
  • name string
  • url string
  • format json | discord | slack
  • events string[]
  • disabled boolean
  • createdAt string (date-time)
  • secret string Returned only here.

Chyby: 400 401 403 409 429

DELETE/v1/webhooks/{id}Oprávnenie webhooks_write

Zmazať webhook

Needs the webhooks_write permission. A webhook that does not exist or is not yours returns 404 webhook_nie_je.

Parametre

  • id path · string (uuid)

Odpoveď 200

  • ok true

Chyby: 401 403 404 429

GET/v1/webhooks/deliveriesOprávnenie webhooks

Doručenia webhookov

Parametre

  • status query · pending | delivered | failed | cancelled nepovinné
  • event query · string nepovinné
  • webhookId query · string (uuid) nepovinné Only deliveries of one webhook.
  • before query · string nepovinné nextBefore from the previous page. Opaque, do not build it yourself.
  • limit query · integer nepovinné

Odpoveď 200

  • deliveries Delivery[]
    • id string (uuid)
    • webhookId string | null (uuid)
    • event string
    • status pending | delivered | failed | cancelled
    • httpStatus integer | null
    • attempts integer
    • error string | null
    • unconfirmed boolean
    • test boolean
    • createdAt string (date-time)
    • lastAttemptAt string | null (date-time)
    • nextAttemptAt string | null (date-time)
    • canResend boolean
  • nextBefore string | null

Chyby: 400 401 403 429

POST/v1/webhooks/deliveries/{id}/resendOprávnenie webhooks

Poslať udalosť znova

The body is kept 7 days after the last attempt; after that 410.

Parametre

  • id path · string (uuid)

Odpoveď 202

  • ok true
  • id string (uuid)

Chyby: 401 403 404 409 410 429

POST/v1/webhooks/testOprávnenie webhooks

Poslať skúšobnú udalosť

Delivers right away and tells you how your URL answered. When the company has more webhooks, send webhookId (errcode webhook_id_required otherwise).

Telo požiadavky

  • webhookId string (uuid) nepovinné

Odpoveď 200

  • id string (uuid)
  • webhookId string (uuid)
  • status pending | delivered | failed | cancelled
  • httpStatus integer | null
  • unconfirmed boolean
  • error string | null

Chyby: 400 401 403 404 409 429