{"openapi":"3.0.0","info":{"title":"Pingram","version":"1.0.0","description":"Pingram REST API for email, SMS, voice, and account resources. Dashboard-only operations are omitted. Authenticate with Authorization: Bearer and a secret API key."},"servers":[{"url":"https://api.pingram.io","description":"Production"}],"paths":{"/account":{"patch":{"operationId":"account_updateAccountSettings","summary":"Update account billing preferences","deprecated":false,"description":"Update account billing preferences such as auto upgrade and usage email alerts.","tags":["Account"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountPatchRequest"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountGetResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}},"get":{"operationId":"account_getAccountDetails","summary":"Get account information for the authenticated account","deprecated":false,"tags":["Account"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountGetResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/account/billing-email":{"get":{"operationId":"account_getBillingEmail","summary":"Get the invoice email address","deprecated":false,"description":"Get the email address that receives invoices for this account.","tags":["Account"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingEmail"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}},"patch":{"operationId":"account_updateBillingEmail","summary":"Update the invoice email address","deprecated":false,"description":"Update the email address that receives invoices for this account.","tags":["Account"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBillingEmailRequest"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingEmail"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/account/invoices":{"get":{"operationId":"account_listInvoices","summary":"List invoices for this account, newest first","deprecated":false,"description":"List invoices for this account, newest first.","tags":["Account"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"number"},"description":"Max invoices to return (1-100, default 10)"},{"name":"startingAfter","in":"query","required":false,"schema":{"type":"string"},"description":"Pagination cursor (invoice id from a previous response)"},{"name":"status","in":"query","required":false,"schema":{"type":"string"},"description":"Filter by status"},{"name":"createdAfter","in":"query","required":false,"schema":{"type":"string"},"description":"Inclusive lower bound (YYYY-MM-DD or unix seconds)"},{"name":"createdBefore","in":"query","required":false,"schema":{"type":"string"},"description":"Inclusive upper bound (YYYY-MM-DD or unix seconds)"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListInvoicesResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/account/payment-methods":{"get":{"operationId":"account_listPaymentMethods","summary":"List saved cards. Only the account owner can call this","deprecated":false,"description":"List saved cards. Only the account owner can call this.","tags":["Account"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountPaymentMethods"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/account/payment-methods/assign":{"post":{"operationId":"account_assignPaymentMethod","summary":"Assign a saved card","deprecated":false,"description":"Use a saved card for this account, as the default for new accounts, or for every account that shares these cards. Only the account owner can call this.","tags":["Account"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssignPaymentMethodRequest"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountPaymentMethods"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/account/payment-methods/setup":{"post":{"operationId":"account_createPaymentMethodSetup","summary":"Return a URL to add a card","deprecated":false,"description":"Return a URL to add a card. Only the account owner can call this. The card is not assigned until you call assign.","tags":["Account"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatePaymentMethodSetupRequest"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PaymentMethodSetup"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/account/subscription/cancel":{"post":{"operationId":"account_cancelSubscription","summary":"Cancel the paid plan at the end of the current billing cycle","deprecated":false,"description":"Cancel the paid plan at the end of the current billing cycle. Access continues until then.","tags":["Account"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CancelSubscriptionRequest"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountGetResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/account/subscription/resume":{"post":{"operationId":"account_resumeSubscription","summary":"Undo a scheduled cancellation","deprecated":false,"description":"Keep the current paid plan and undo a cancellation scheduled for the end of the billing cycle.","tags":["Account"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountGetResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/account/supabase":{"delete":{"operationId":"account_revokeSupabase","summary":"Revoke Supabase integration","deprecated":false,"description":"Revoke Supabase integration (removes stored tokens and project info)","tags":["Account"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupabaseConfigureResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/account/supabase/configure":{"post":{"operationId":"account_configureSupabaseSMTP","summary":"Configure SMTP settings for a Supabase project","deprecated":false,"tags":["Account"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupabaseConfigureRequest"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupabaseConfigureResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/account/supabase/oauth":{"post":{"operationId":"account_supabaseOAuth","summary":"Exchange Supabase OAuth authorization code for tokens","deprecated":false,"tags":["Account"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupabaseOAuthRequest"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupabaseOAuthResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/account/supabase/projects":{"get":{"operationId":"account_listSupabaseProjects","summary":"List Supabase projects for the connected account","deprecated":false,"tags":["Account"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupabaseProjectsResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/account/supabase/status":{"get":{"operationId":"account_getSupabaseStatus","summary":"Get Supabase integration status for the account","deprecated":false,"tags":["Account"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupabaseStatusResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/account/usage":{"get":{"operationId":"account_getUsage","summary":"Get usage for the authenticated account","deprecated":false,"description":"Get usage for the authenticated account.","tags":["Account"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetUsageResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/account/usage/history":{"get":{"operationId":"account_getUsageHistory","summary":"Get usage history","deprecated":false,"description":"Get historical usage for the authenticated account over a date range, summed by UTC calendar month or billing cycle from daily counts.","tags":["Account"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"startDate","in":"query","required":true,"schema":{"type":"string"},"description":"Start date (YYYY-MM-DD) for the range"},{"name":"endDate","in":"query","required":true,"schema":{"type":"string"},"description":"End date (YYYY-MM-DD) for the range"},{"name":"groupBy","in":"query","required":false,"schema":{"type":"string"},"description":"calendar (UTC months, default) or billing (account billing cycles)"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetUsageHistoryResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/accounts":{"get":{"operationId":"accounts_listAccounts","summary":"List accounts the authenticated user can access","deprecated":false,"tags":["Accounts"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListAccountsResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}},"post":{"operationId":"accounts_createAccount","summary":"Create another Pingram account","deprecated":false,"description":"Create one additional Pingram account (a separate workspace) for the signed-in user. The caller must already belong to an account. Requires a user session or personal access token; an account API key cannot call this. Does not create a login, and does not change, delete, or grant access to existing accounts. Omit plan and nothing is charged. The new account is ready for billing to be added later, and it cannot send until then. Setting plan charges immediately. It starts a paid subscription on the payment method already saved on sourceBillingAccountId, an account the caller must own. Optional memberEmails adds people who already share an account with the caller and invites everyone else.","tags":["Accounts"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAccountRequest"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateAccountResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/accounts/{accountId}":{"patch":{"operationId":"accounts_updateAccount","summary":"Change the display name of an account","deprecated":false,"description":"Change the display name of an account the caller can access. The name is the label shown in the dashboard and in account lists.","tags":["Accounts"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"accountId","in":"path","required":true,"schema":{"type":"string"},"description":"Account to rename"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateAccountRequest"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountSummary"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/billing":{"post":{"operationId":"account_prepareCheckoutSession","summary":"Start or continue billing for this account","deprecated":false,"description":"Start or continue billing for this account. Returns a URL when payment is needed.","tags":["Account"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingPostRequestBody"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingPostResponseBody"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/broadcasts":{"post":{"operationId":"broadcasts_create","summary":"Create a draft email broadcast","deprecated":false,"description":"Create a draft email broadcast. html is the send-ready body. Optional internalTemplate is visual-editor source; if set it must be paired with html. A later update can add it to a draft by sending it with html. Set audience to either a Mongo-style user filter (sync users via Users API first; for large lists) or a raw email list (max 10,000). Include name, from fields, subject, and HTML. Notification type is optional on create and required before send or schedule; it is created automatically if missing.","tags":["Broadcasts"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateBroadcastRequest"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BroadcastResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}},"get":{"operationId":"broadcasts_list","summary":"List email broadcasts for the account, newest first","deprecated":false,"description":"List email broadcasts for the account, newest first. Returns metadata without html or internalTemplate bodies. A live-filter audience includes the filter. A raw email audience includes emailCount and omits the addresses. Paginate with limit (default 50, max 100) and nextToken.","tags":["Broadcasts"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"number"},"description":"Max broadcasts to return (default 50)"},{"name":"nextToken","in":"query","required":false,"schema":{"type":"string"},"description":"Pagination token"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListBroadcastsResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/broadcasts/{broadcastId}":{"get":{"operationId":"broadcasts_get","summary":"Get one email broadcast by ID","deprecated":false,"description":"Get one email broadcast by ID, including the send-ready html body, optional internalTemplate (visual-editor source), and audience definition.","tags":["Broadcasts"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"broadcastId","in":"path","required":true,"schema":{"type":"string"},"description":"Broadcast ID"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BroadcastResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}},"patch":{"operationId":"broadcasts_update","summary":"Update a draft email broadcast","deprecated":false,"description":"Update a draft email broadcast. Fields you send replace the stored values (name, type, audience, sender, subject, html) and the previous values are not kept; omitted fields stay. html is the send-ready body. Send an empty replyToAddress to clear Reply-To. internalTemplate is visual-editor source: send it with html to add it to an html-only draft or to update it. It cannot be removed. Only drafts can be edited; scheduled or active broadcasts are locked. This does not send the broadcast.","tags":["Broadcasts"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"broadcastId","in":"path","required":true,"schema":{"type":"string"},"description":"Broadcast ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateBroadcastRequest"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BroadcastResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}},"delete":{"operationId":"broadcasts_delete","summary":"Delete an email broadcast","deprecated":false,"description":"Delete an email broadcast. Allowed for drafts, scheduled, paused, completed, and canceled broadcasts. Not allowed while status is sending.","tags":["Broadcasts"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"broadcastId","in":"path","required":true,"schema":{"type":"string"},"description":"Broadcast ID"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/broadcasts/{broadcastId}/archive":{"post":{"operationId":"broadcasts_archive","summary":"Archive an email broadcast","deprecated":false,"description":"Archive an email broadcast so it is hidden from the default broadcast list. Allowed for draft, paused, sent, and canceled broadcasts. Not allowed while sending or scheduled.","tags":["Broadcasts"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"broadcastId","in":"path","required":true,"schema":{"type":"string"},"description":"Broadcast ID"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BroadcastResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/broadcasts/{broadcastId}/cancel":{"post":{"operationId":"broadcasts_cancel","summary":"Cancel an email broadcast","deprecated":false,"description":"Cancel an email broadcast. Scheduled broadcasts revert to draft and drop their schedule (they can be scheduled again). Sending or paused broadcasts become canceled; recipients already processed stay as they are, and remaining pending recipients are skipped and will not be sent. That skip cannot be undone.","tags":["Broadcasts"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"broadcastId","in":"path","required":true,"schema":{"type":"string"},"description":"Broadcast ID"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BroadcastResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/broadcasts/{broadcastId}/metrics":{"get":{"operationId":"broadcasts_getMetrics","summary":"Get live broadcast metrics","deprecated":false,"description":"Poll live email broadcast metrics: status, optional pausedReason or scheduleAt, and aggregate counters (total, sent, delivered, opened, clicked, bounced, complained, unsubscribed, skipped, failed).","tags":["Broadcasts"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"broadcastId","in":"path","required":true,"schema":{"type":"string"},"description":"Broadcast ID"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BroadcastMetricsResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/broadcasts/{broadcastId}/pause":{"post":{"operationId":"broadcasts_pause","summary":"Pause an actively sending email broadcast","deprecated":false,"description":"Pause an actively sending email broadcast. Status becomes paused with pausedReason PAUSED_BY_USER.","tags":["Broadcasts"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"broadcastId","in":"path","required":true,"schema":{"type":"string"},"description":"Broadcast ID"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BroadcastResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/broadcasts/{broadcastId}/recipients":{"get":{"operationId":"broadcasts_listRecipients","summary":"List email broadcast recipients","deprecated":false,"description":"List email broadcast recipients with per-recipient delivery fact timestamps (sentAt, deliveredAt, openedAt, etc.). Derive display status client-side from timestamps. Filter by status (pending, sent, delivered, opened, clicked, bounced, complained, unsubscribed, skipped, failed, problems). Paginate with limit (default 50, max 200) and nextToken.","tags":["Broadcasts"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"broadcastId","in":"path","required":true,"schema":{"type":"string"},"description":"Broadcast ID"},{"name":"status","in":"query","required":false,"schema":{"type":"string"},"description":"Filter"},{"name":"limit","in":"query","required":false,"schema":{"type":"number"},"description":"Max recipients to return (default 50)"},{"name":"nextToken","in":"query","required":false,"schema":{"type":"string"},"description":"Pagination token"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListBroadcastRecipientsResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/broadcasts/{broadcastId}/resume":{"post":{"operationId":"broadcasts_resume","summary":"Resume a paused email broadcast","deprecated":false,"description":"Resume a paused email broadcast. Continues sending remaining recipients. Broadcasts paused for spam content cannot be resumed.","tags":["Broadcasts"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"broadcastId","in":"path","required":true,"schema":{"type":"string"},"description":"Broadcast ID"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BroadcastResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/broadcasts/{broadcastId}/schedule":{"post":{"operationId":"broadcasts_schedule","summary":"Schedule a draft email broadcast for a future ISO datetime","deprecated":false,"description":"Schedule a draft email broadcast for a future ISO datetime (sendAt). Requires a non-empty subject. Cancels any existing schedule when the broadcast is returned to draft via cancel.","tags":["Broadcasts"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"broadcastId","in":"path","required":true,"schema":{"type":"string"},"description":"Broadcast ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduleBroadcastRequest"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BroadcastResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/broadcasts/{broadcastId}/send":{"post":{"operationId":"broadcasts_send","summary":"Send a draft email broadcast immediately","deprecated":false,"description":"Send a draft email broadcast immediately. Requires a non-empty subject. Transitions status to sending and starts delivery.","tags":["Broadcasts"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"broadcastId","in":"path","required":true,"schema":{"type":"string"},"description":"Broadcast ID"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BroadcastResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/broadcasts/{broadcastId}/unarchive":{"post":{"operationId":"broadcasts_unarchive","summary":"Restore an archived email broadcast","deprecated":false,"description":"Restore an archived email broadcast to the default broadcast list.","tags":["Broadcasts"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"broadcastId","in":"path","required":true,"schema":{"type":"string"},"description":"Broadcast ID"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BroadcastResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/components":{"get":{"operationId":"components_listComponents","summary":"List email components","deprecated":false,"tags":["Components"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"channel","in":"path","required":true,"schema":{"type":"string"},"description":"Channel type (EMAIL, SMS, etc.)"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetEmailComponentsResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}},"post":{"operationId":"components_createComponent","summary":"Create a new component","deprecated":false,"tags":["Components"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailComponentPostRequest"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailComponentResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/components/{componentId}":{"get":{"operationId":"components_getComponent","summary":"Get a specific component by ID","deprecated":false,"tags":["Components"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"componentId","in":"path","required":true,"schema":{"type":"string"},"description":"Component ID"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailComponentResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}},"patch":{"operationId":"components_patchComponent","summary":"Update a component's properties","deprecated":false,"tags":["Components"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"componentId","in":"path","required":true,"schema":{"type":"string"},"description":"Component ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailComponentPatchRequest"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailComponentResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}},"delete":{"operationId":"components_deleteComponent","summary":"Delete a component","deprecated":false,"tags":["Components"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"componentId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/components/public":{"get":{"operationId":"components_listComponentsParsed","summary":"List all account components with the internal JSON parsed","deprecated":false,"tags":["Components"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetPublicComponentsResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/domains":{"get":{"operationId":"domains_listDomains","summary":"List domains already added to this Pingram account for email","deprecated":false,"description":"List domains already added to this Pingram account for email. Each entry includes verification status and the DNS records Pingram expects you to publish. Does not search a registrar, purchase or transfer a domain, change DNS, or include domains that have not been added to this account.","tags":["Domains"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetSendersResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}},"post":{"operationId":"domains_addDomain","summary":"Start verification for a domain you already own","deprecated":false,"description":"Start verification for a domain you already own so Pingram can use it for email. Pass a bare domain (example.com) or subdomain (mail.example.com). This does not purchase, transfer, renew, or control the domain, does not edit DNS, and does not disable sending or receiving on other platforms. It saves the domain on this Pingram account and returns DNS records for you to publish. Required DKIM lets Pingram send email from addresses on this domain once verification completes. Optional inbound MX, once you publish it, routes that domain's inbound email to Pingram. This call only begins verification. Publish the records, then start verification in the dashboard or with the start-verification API. Adding a domain that is already on the account returns the existing records.","tags":["Domains"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostSendersRequestBody"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetSendersResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/domains/{sender}":{"delete":{"operationId":"domains_deleteDomain","summary":"Remove a sender domain from the account","deprecated":false,"description":"Remove a sending domain from this account. You can no longer send from it, and the tracking subdomain this account created for it stops serving opens, clicks, and unsubscribe for new mail.","tags":["Domains"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"sender","in":"path","required":true,"schema":{"type":"string"},"description":"Sender domain (URL encoded)"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/domains/{sender}/start-verification":{"post":{"operationId":"domains_startDomainVerification","summary":"Start domain verification","deprecated":false,"description":"Start verification for a domain already on this account, so you can send from addresses on it. Publish the DNS records first. This also checks the tracking subdomain and keeps setting it up. Call it again any time. If verification has already started, this still checks the tracking subdomain and returns the domain as it is now.","tags":["Domains"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"sender","in":"path","required":true,"schema":{"type":"string"},"description":"Sender domain (URL encoded)"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetSendersResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/editor/token":{"post":{"operationId":"editor_generateEditorToken","summary":"Get an email editor access token","deprecated":false,"description":"Get the email editor access token to load it it in your environment","tags":["Editor"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailAuthTokenPostRequest"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/beeTokenV2"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/email":{"post":{"operationId":"email_send","summary":"Send an email","deprecated":false,"description":"Send an email. Requires `type`, `to`, `subject`, and `html`. Optional: `fromAddress`, `fromName`, `schedule`, attachments. To reach people outside your account, use an address on a verified domain. The shared Pingram address can only email the account itself and always sends as noreply.","tags":["Email"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendEmailRequest"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendEmailApiResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/email/suppressions/{reason}":{"delete":{"operationId":"email_deleteSuppressions","summary":"Remove email suppressions","deprecated":false,"description":"Start removing all email suppressions of the given reason (`retryable` or `bounces`) for users in the environment. Returns immediately after the job is queued — suppressions are not yet cleared when this response is received. Large removals are processed in the background in batches.","tags":["Email"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"reason","in":"path","required":true,"schema":{"type":"string"},"description":"Suppression reason to clear (retryable | bounces)"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/environments":{"get":{"operationId":"environments_listEnvironments","summary":"Get all environments for the authenticated account","deprecated":false,"tags":["Environments"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetEnvironmentsResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/environments/{clientId}":{"patch":{"operationId":"environments_updateEnvironment","summary":"Update environment settings","deprecated":false,"description":"Update environment settings (title, secret, disable sending, secure mode)","tags":["Environments"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"clientId","in":"path","required":true,"schema":{"type":"string"},"description":"Environment client ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EnvironmentPatchRequest"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Environment"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/insights":{"post":{"operationId":"insights_queryInsights","summary":"Get CloudWatch metrics data for insights and analytics","deprecated":false,"tags":["Insights"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/IngishtsPostRequest"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetMetricsResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/keys":{"post":{"operationId":"keys_createAPIKey","summary":"Create a new API key (secret or public) for an environment","deprecated":false,"tags":["Keys"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateKeyRequest"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateKeyResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}},"get":{"operationId":"keys_listAPIKeys","summary":"List all API keys for the authenticated user's account","deprecated":false,"tags":["Keys"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetKeysResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/keys/{keyId}":{"delete":{"operationId":"keys_revokeAPIKey","summary":"Revoke an API key","deprecated":false,"tags":["Keys"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"keyId","in":"path","required":true,"schema":{"type":"string"},"description":"The API key ID (jti)"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteKeyResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/library/{useCase}":{"post":{"operationId":"library_create","summary":"Create an upload slot in the account library","deprecated":false,"description":"Create an upload slot in the account library. contentType must be image/png, image/jpeg, image/gif, or image/webp. PUT the file to the returned uploadUrl with that Content-Type, then use the returned url in emails and the editor.","tags":["Library"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"useCase","in":"path","required":true,"schema":{"type":"string"},"description":"Library use-case"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateLibraryRequest"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateLibraryResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}},"get":{"operationId":"library_list","summary":"List files in the account library","deprecated":false,"description":"List files in the account library for a use-case, newest first. Paginate with limit (default 50, max 100) and nextToken.","tags":["Library"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"useCase","in":"path","required":true,"schema":{"type":"string"},"description":"Library use-case"},{"name":"limit","in":"query","required":false,"schema":{"type":"number"},"description":"Max items to return (default 50)"},{"name":"nextToken","in":"query","required":false,"schema":{"type":"string"},"description":"Pagination token"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListLibraryResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/logs":{"get":{"operationId":"logs_getLogs","summary":"List recent notification logs","deprecated":false,"description":"List recent notification logs for the authenticated account, newest first.","tags":["Logs"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"number"},"description":"Maximum number of logs to return (default"},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"},"description":"Pagination cursor for next page"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetLogsResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/logs/{trackingIds}":{"get":{"operationId":"logs_getLogsByTrackingIds","summary":"Get logs by tracking IDs (comma-separated, max 25 IDs)","deprecated":false,"description":"Get logs by tracking IDs (comma-separated, max 25 IDs). Returns full log objects with personally identifiable information (recipients, user ids, phone numbers, and request details). For a simple delivery check, use Get Delivery Status.","tags":["Logs"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"trackingIds","in":"path","required":true,"schema":{"type":"string"},"description":"Comma-separated tracking IDs (URL encoded)"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogsGetResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/logs/query":{"post":{"operationId":"logs_startLogsQuery","summary":"Start an asynchronous log search over a date range","deprecated":false,"description":"Start an asynchronous log search over a date range. Returns a `queryId`; poll with Get Log Query Results until status is Complete.","tags":["Logs"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogQueryPostBody"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogsQueryResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/logs/query/{queryId}":{"get":{"operationId":"logs_getLogsQueryResult","summary":"Get results from a log query started with Start Log Query","deprecated":false,"description":"Get results from a log query started with Start Log Query. Poll until status is Complete.","tags":["Logs"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"queryId","in":"path","required":true,"schema":{"type":"string"},"description":"Query ID returned by Start Log Query"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogsQueryResultResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/logs/retention":{"get":{"operationId":"logs_getLogRetention","summary":"Get log retention period in days for the account","deprecated":false,"tags":["Logs"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogsRetentionResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/logs/retry/{trackingId}":{"post":{"operationId":"logs_retryInbound","summary":"Resend the EMAIL_INBOUND webhook for one inbound email","deprecated":false,"description":"Resend the EMAIL_INBOUND webhook for one inbound email. Uses the original tracking ID and does not count another email. Refused when the message is older than 30 days.","tags":["Logs"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"trackingId","in":"path","required":true,"schema":{"type":"string"},"description":"Tracking ID of the inbound email"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/logs/status/{trackingIds}":{"get":{"operationId":"logs_getDeliveryStatus","summary":"Look up email and SMS delivery status","deprecated":false,"description":"Look up email and SMS delivery status for up to 25 tracking IDs. Each entry is the tracking id, channel (EMAIL or SMS), status, and the time that status was recorded. The result does not include recipients, phone numbers, user ids, request bodies, IP addresses, account ids, or user-agent data. Unknown tracking ids are omitted. Other channels are not included.","tags":["Logs"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"trackingIds","in":"path","required":true,"schema":{"type":"string"},"description":"Comma-separated tracking IDs (URL encoded, max 25)"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogsDeliveryStatusResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/logs/tail":{"get":{"operationId":"logs_tailLogs","summary":"Get last 100 logs from the stream","deprecated":false,"tags":["Logs"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LogsTailResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/members":{"get":{"operationId":"members_listMembers","summary":"Get a list of team members in the account","deprecated":false,"tags":["Members"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"envId","in":"path","required":true,"schema":{"type":"string"},"description":"Environment ID"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetMembersResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}},"post":{"operationId":"members_inviteMember","summary":"Invite a new member to the account","deprecated":false,"tags":["Members"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"envId","in":"path","required":true,"schema":{"type":"string"},"description":"Environment ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemberInviteRequest"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitePostResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/members/{userId}":{"delete":{"operationId":"members_removeMember","summary":"Remove a member from the account","deprecated":false,"tags":["Members"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"envId","in":"path","required":true,"schema":{"type":"string"},"description":"Environment ID"},{"name":"userId","in":"path","required":true,"schema":{"type":"string"},"description":"User ID or email address (URL encoded)"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}},"patch":{"operationId":"members_update","summary":"Update a member","deprecated":false,"description":"Updates a member. Account owners can set role to \"owner\" or \"admin\" on other members.","tags":["Members"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"envId","in":"path","required":true,"schema":{"type":"string"},"description":"Environment ID"},{"name":"userId","in":"path","required":true,"schema":{"type":"string"},"description":"User ID to update"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MemberUpdateRequest"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/members/autojoin":{"get":{"operationId":"members_getAutoJoin","summary":"Get auto-join domains for the account","deprecated":false,"tags":["Members"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"envId","in":"path","required":true,"schema":{"type":"string"},"description":"Environment ID"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoJoinGetResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}},"post":{"operationId":"members_setAutoJoin","summary":"Set auto-join domains for the account","deprecated":false,"tags":["Members"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"envId","in":"path","required":true,"schema":{"type":"string"},"description":"Environment ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoJoinRequestBody"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AutoJoinPostResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/notifications/{notificationId}/{channel}/templates":{"post":{"operationId":"templates_createTemplate","summary":"Create a new template for a notification","deprecated":false,"tags":["Templates"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"notificationId","in":"path","required":true,"schema":{"type":"string"},"description":"Notification ID"},{"name":"channel","in":"path","required":true,"schema":{"type":"string"},"description":"Channel type"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplatePostRequest"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Template"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}},"get":{"operationId":"templates_listTemplates","summary":"List all templates for a notification and channel","deprecated":false,"tags":["Templates"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"notificationId","in":"path","required":true,"schema":{"type":"string"},"description":"Notification ID"},{"name":"channel","in":"path","required":true,"schema":{"type":"string"},"description":"Channel type"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetTemplatesListResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/notifications/{notificationId}/{channel}/templates/{templateId}":{"get":{"operationId":"templates_getTemplate","summary":"Get a single template by ID","deprecated":false,"tags":["Templates"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"notificationId","in":"path","required":true,"schema":{"type":"string"},"description":"Notification ID"},{"name":"channel","in":"path","required":true,"schema":{"type":"string"},"description":"Channel type"},{"name":"templateId","in":"path","required":true,"schema":{"type":"string"},"description":"Template ID"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetTemplatesResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}},"patch":{"operationId":"templates_updateTemplate","summary":"Update a template's properties","deprecated":false,"tags":["Templates"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"notificationId","in":"path","required":true,"schema":{"type":"string"},"description":"Notification ID"},{"name":"channel","in":"path","required":true,"schema":{"type":"string"},"description":"Channel type"},{"name":"templateId","in":"path","required":true,"schema":{"type":"string"},"description":"Template ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TemplatePatchRequest"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Template"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}},"delete":{"operationId":"templates_deleteTemplate","summary":"Delete a template","deprecated":false,"tags":["Templates"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"notificationId","in":"path","required":true,"schema":{"type":"string"},"description":"Notification ID"},{"name":"channel","in":"path","required":true,"schema":{"type":"string"},"description":"Channel type"},{"name":"templateId","in":"path","required":true,"schema":{"type":"string"},"description":"Template ID"}],"responses":{"204":{"description":"No Content"},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/notifications/{notificationId}/{channel}/templates/default-selection":{"patch":{"operationId":"templates_setDefaultTemplate","summary":"Set a template as default for specific delivery modes","deprecated":false,"tags":["Templates"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"notificationId","in":"path","required":true,"schema":{"type":"string"},"description":"Notification ID"},{"name":"channel","in":"path","required":true,"schema":{"type":"string"},"description":"Channel type"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SetDefaultTemplateRequest"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Template"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/notifications/{notificationId}/subNotifications/{subNotificationId}":{"put":{"operationId":"subNotifications_putSubNotification","summary":"This endpoint is no longer maintained and should not be used","deprecated":false,"description":"This endpoint is no longer maintained and should not be used.","tags":["SubNotifications"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"notificationId","in":"path","required":true,"schema":{"type":"string"},"description":"The notification ID"},{"name":"subNotificationId","in":"path","required":true,"schema":{"type":"string"},"description":"The sub-notification ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubNotificationPUTRequest"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubNotification"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}},"delete":{"operationId":"subNotifications_deleteSubNotification","summary":"This endpoint is no longer maintained and should not be used","deprecated":false,"description":"This endpoint is no longer maintained and should not be used.","tags":["SubNotifications"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"notificationId","in":"path","required":true,"schema":{"type":"string"},"description":"The notification ID"},{"name":"subNotificationId","in":"path","required":true,"schema":{"type":"string"},"description":"The sub-notification ID"}],"responses":{"204":{"description":"No Content"},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/numbers/{phoneNumber}":{"delete":{"operationId":"numbers_releaseNumber","summary":"Release a phone number from the account","deprecated":false,"description":"Release a phone number from the account. No refund for the current billing month.","tags":["Numbers"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"phoneNumber","in":"path","required":true,"schema":{"type":"string"},"description":"E.164 phone number to release"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReleasePhoneNumberResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/numbers/available":{"get":{"operationId":"numbers_searchAvailable","summary":"Search for available phone numbers to purchase","deprecated":false,"description":"Search for available phone numbers to purchase. Requires `countryCode` (e.g. US, CA). Narrow the results with an area code, a city, or digits the number should start with, end with, or contain. Use before ordering a number.","tags":["Numbers"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"countryCode","in":"query","required":true,"schema":{"type":"string"},"description":"ISO 3166-1 alpha-2 country code (e.g., US, CA)"},{"name":"features","in":"query","required":false,"schema":{"type":"string"},"description":"Comma-separated"},{"name":"areaCode","in":"query","required":false,"schema":{"type":"string"},"description":"National destination / area code filter"},{"name":"limit","in":"query","required":false,"schema":{"type":"number"},"description":"Max results (default 10, max 50)"},{"name":"startsWith","in":"query","required":false,"schema":{"type":"string"},"description":"Digits the number starts with, 1 to 7 digits. Do not include the country code. When `areaCode` is set, omit those digits here."},{"name":"endsWith","in":"query","required":false,"schema":{"type":"string"},"description":"Digits the number must end with, 1 to 7 digits. Use this to find a number close to one you already have."},{"name":"contains","in":"query","required":false,"schema":{"type":"string"},"description":"Digits to find in the number, in that order, 1 to 7 digits."},{"name":"city","in":"query","required":false,"schema":{"type":"string"},"description":"City to search in, such as San Francisco."}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchAvailablePhoneNumbersResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/numbers/list":{"get":{"operationId":"numbers_list","summary":"List phone numbers","deprecated":false,"description":"List active phone numbers registered for the account, including voice agent binding state.","tags":["Numbers"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListPhoneNumbersResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/numbers/order":{"post":{"operationId":"numbers_orderNumber","summary":"Purchase a phone number","deprecated":false,"description":"Purchase a phone number for the authenticated account, or reactivate a released number owned by the account (preserves original createdAt). Pass `phoneNumber` in E.164 format (e.g. +15551234567).","tags":["Numbers"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderPhoneNumberRequest"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderPhoneNumberResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/numbers/released":{"get":{"operationId":"numbers_listReleased","summary":"List released phone numbers","deprecated":false,"description":"List released phone numbers. Released numbers may be purchased again with 2 weeks of being released. Released numbers may be removed from released list after 2 weeks.","tags":["Numbers"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListReleasedPhoneNumbersResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/profile/accept_invite":{"post":{"operationId":"profile_acceptInvite","summary":"Accept a team invitation using a token","deprecated":false,"tags":["Profile"],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptInviteRequest"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AcceptInviteResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/profile/delete-account":{"post":{"operationId":"profile_deleteAccount","summary":"Permanently delete the authenticated user's account","deprecated":false,"tags":["Profile"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteAccountRequest"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/profile/mfa":{"get":{"operationId":"profile_getMfaStatus","summary":"Get MFA status for the authenticated user","deprecated":false,"tags":["Profile"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MFAStatusResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}},"post":{"operationId":"profile_setupMfa","summary":"Start TOTP MFA setup and return QR code data","deprecated":false,"tags":["Profile"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MFASetupRequest"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MFASetupResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/profile/mfa/{type}":{"delete":{"operationId":"profile_disableMfa","summary":"Disable MFA for the authenticated user","deprecated":false,"tags":["Profile"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"type","in":"path","required":true,"schema":{"type":"string"},"description":"MFA type (e.g. SOFTWARE_TOKEN_MFA)"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/profile/mfa/verify":{"post":{"operationId":"profile_verifyMfa","summary":"Verify TOTP code and enable MFA","deprecated":false,"tags":["Profile"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MFAVerifyRequest"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SuccessResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/registrations/us/10dlc/brand":{"get":{"operationId":"registrations_getUs10dlcBrand","summary":"Get the 10DLC brand registration","deprecated":false,"description":"Get the 10DLC brand registration for the authenticated account. Returns null when no registration exists yet.","tags":["Registrations"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenDlcBrandRegistration"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}},"patch":{"operationId":"registrations_updateUs10dlcBrand","summary":"Update the 10DLC brand","deprecated":false,"description":"Overwrite business fields on this account's existing US 10DLC brand registration (legal name, address, tax ID, website, compliance contact, and related identity). Fields you omit stay; values you send replace what was stored and are not kept as history. Does not create a registration, submit it to carriers, change brandStatus, or delete it. Workflow status stays under Pingram's control.","tags":["Registrations"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenDlcBrandUpdateRequest"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenDlcBrandRegistration"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}},"post":{"operationId":"registrations_createUs10dlcBrand","summary":"Create a new 10DLC brand registration","deprecated":false,"description":"Create a new 10DLC brand registration. Sets brandStatus to pending_review; Pingram handles carrier submission after review.","tags":["Registrations"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenDlcBrandCreateRequest"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenDlcBrandRegistration"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/registrations/us/10dlc/campaign":{"get":{"operationId":"registrations_getUs10dlcCampaign","summary":"Get the 10DLC campaign registration","deprecated":false,"description":"Get the 10DLC campaign registration for the authenticated account. Returns null when no brand registration exists yet.","tags":["Registrations"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenDlcCampaignRegistration"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}},"patch":{"operationId":"registrations_updateUs10dlcCampaign","summary":"Update the 10DLC campaign","deprecated":false,"description":"Overwrite campaign fields on this account's existing US 10DLC campaign (description, samples, opt-in and opt-out text, use case, and related settings). Fields you send replace the stored values and the previous text is not kept; omitted fields stay. Editing is refused once the campaign is in_progress or approved. Does not submit the campaign to carriers, change campaignStatus, or delete it.","tags":["Registrations"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenDlcCampaignUpdateRequest"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TenDlcCampaignRegistration"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/send":{"post":{"operationId":"send","summary":"Send a notification (email, SMS, etc.) to one user","deprecated":false,"description":"Send a notification (email, SMS, etc.) to one user. Requires a notification `type` which categorizes this messages for future reporting, and channel-specific payloads such as `email` or `sms`. Recipient is specified with the `to` parameter. Returns a `trackingId` for error or delivery lookup through our Logs.","security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SenderPostBody"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SenderPostResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/sender/scheduler/{trackingId}":{"put":{"operationId":"sender_updateSchedule","summary":"Update a scheduled notification","deprecated":false,"description":"Update the body or schedule of an already scheduled notification.","tags":["Sender"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"trackingId","in":"path","required":true,"schema":{"type":"string"},"description":"The tracking ID of the scheduled notification"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SenderPostBody"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}},"delete":{"operationId":"sender_deleteSchedule","summary":"Delete (unschedule) an already scheduled notification","deprecated":false,"tags":["Sender"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"trackingId","in":"path","required":true,"schema":{"type":"string"},"description":"The tracking ID of the scheduled notification"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/sender/test/email":{"post":{"operationId":"sender_testEmail","summary":"Test the emailer with a sample email","deprecated":false,"tags":["Sender"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostEmailTestRequest"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostEmailTestResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/sms":{"post":{"operationId":"sms_send","summary":"Send an SMS or MMS directly without a template","deprecated":false,"description":"Send an SMS or MMS directly without a template. Requires `type` and `to`. Pass `message` and/or `mediaUrls`. Optional: `from`, `schedule`.","tags":["Sms"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendSmsRequest"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendSmsResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/status":{"get":{"operationId":"health_healthCheck","summary":"Perform health checks on our internal systems","deprecated":false,"description":"Perform health checks on our internal systems.","tags":["Health"],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/types":{"get":{"operationId":"types_listNotificationTypes","summary":"Get all notifications for an account with their templates","deprecated":false,"tags":["Types"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetNotificationsResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}},"post":{"operationId":"types_createNotificationType","summary":"Create a new notification","deprecated":false,"tags":["Types"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationCreateRequest"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Notification"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/types/{notificationId}":{"get":{"operationId":"types_getNotificationType","summary":"Get a specific notification by ID","deprecated":false,"tags":["Types"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"notificationId","in":"path","required":true,"schema":{"type":"string"},"description":"The notification ID"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetNotificationsResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}},"delete":{"operationId":"types_deleteNotificationType","summary":"Delete a notification","deprecated":false,"tags":["Types"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"notificationId","in":"path","required":true,"schema":{"type":"string"},"description":"The notification ID"}],"responses":{"204":{"description":"No Content"},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}},"patch":{"operationId":"types_updateNotificationType","summary":"Update a notification's settings","deprecated":false,"tags":["Types"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"notificationId","in":"path","required":true,"schema":{"type":"string"},"description":"The notification ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationPatchRequest"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Notification"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/user_suppression/{userId}/channel/{channel}":{"delete":{"operationId":"users_removeUserFromSuppression","summary":"Remove user suppression status for a specific channel","deprecated":false,"tags":["Users"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"userId","in":"path","required":true,"schema":{"type":"string"},"description":"User ID"},{"name":"channel","in":"path","required":true,"schema":{"type":"string"},"description":"Channel type (EMAIL)"},{"name":"envId","in":"query","required":false,"schema":{"type":"string"},"description":"Environment ID (required when using JWT auth)"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UserSuppressionDeleteResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/users":{"get":{"operationId":"users_listUsers","summary":"Get all users for an environment with pagination support","deprecated":false,"tags":["Users"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"limit","in":"query","required":true,"schema":{"type":"number"},"description":"Maximum number of users to return (default"},{"name":"nextToken","in":"query","required":true,"schema":{"type":"string"},"description":"Pagination token for next page"},{"name":"envId","in":"query","required":false,"schema":{"type":"string"},"description":"Environment ID (required when using JWT auth)"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetUsersResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/users/{userId}":{"get":{"operationId":"user_getUser","summary":"Get a user by ID","deprecated":false,"description":"Get a user by ID. All users exist implicitly, returns basic user object if not found in DB.","tags":["User"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"userId","in":"path","required":true,"schema":{"type":"string"},"description":"User ID"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}},"post":{"operationId":"user_identify","summary":"Create or update a user with the given ID","deprecated":false,"description":"Create or update a user with the given ID. Updates lastSeenTime automatically.","tags":["User"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"userId","in":"path","required":true,"schema":{"type":"string"},"description":"User ID"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PostUserRequest"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/User"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}},"delete":{"operationId":"users_deleteUser","summary":"Delete a user","deprecated":false,"description":"Delete a user and all associated data (in-app notifications, preferences, and user record)","tags":["Users"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"userId","in":"path","required":true,"schema":{"type":"string"},"description":"User ID"},{"name":"envId","in":"query","required":false,"schema":{"type":"string"},"description":"Environment ID (required when using JWT auth)"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeleteUserResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/users/account-metadata":{"get":{"operationId":"user_getAccountMetadata","summary":"Get account metadata","deprecated":false,"description":"Get account-level metadata including logo, VAPID key, and web push status","tags":["User"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetAccountMetadataResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/voice/browser-call":{"post":{"operationId":"voice_createBrowserCall","summary":"Place a browser playground call","deprecated":false,"description":"Place a browser playground call. Script calls use POST /voice/call.","tags":["Voice"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceBrowserCallRequest"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceBrowserCallResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/voice/call":{"post":{"operationId":"voice_call","summary":"Place an outbound call. The config is not saved","deprecated":false,"description":"Place an outbound call. The config is not saved.","tags":["Voice"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceCallRequest"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceCallResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/voice/calls":{"get":{"operationId":"voice_listCalls","summary":"List recent calls newest-first (30-day retention)","deprecated":false,"tags":["Voice"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"number"},"description":"Page size (default 25, max 100)"},{"name":"cursor","in":"query","required":false,"schema":{"type":"string"},"description":"Pagination cursor from a previous response"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListVoiceCallsResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/voice/calls/{trackingId}":{"get":{"operationId":"voice_getCall","summary":"Get a call recording and transcript","deprecated":false,"description":"Get a call with transcript timeline and recording playback URL","tags":["Voice"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"trackingId","in":"path","required":true,"schema":{"type":"string"},"description":"Call tracking id"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GetVoiceCallResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/voice/calls/{trackingId}/transfer":{"post":{"operationId":"voice_transfer","summary":"Move a live phone call to another number","deprecated":false,"tags":["Voice"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"trackingId","in":"path","required":true,"schema":{"type":"string"},"description":"Call tracking id"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TransferCallRequest"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/voice/inbound-claims":{"post":{"operationId":"voice_armInboundClaim","summary":"Arm the shared test number","deprecated":false,"description":"Arm the shared test number so the next call from this user's phone uses this inbound behavior","tags":["Voice"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArmVoiceInboundClaimRequest"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ArmVoiceInboundClaimResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/voice/numbers/{phoneNumber}/inbound":{"delete":{"operationId":"voice_clearNumberInbound","summary":"Remove inbound call behavior from a number this account owns","deprecated":false,"tags":["Voice"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"phoneNumber","in":"path","required":true,"schema":{"type":"string"},"description":"E.164 phone number"}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}},"put":{"operationId":"voice_putNumberInbound","summary":"Store inbound call behavior on a number this account owns","deprecated":false,"tags":["Voice"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"phoneNumber","in":"path","required":true,"schema":{"type":"string"},"description":"E.164 phone number"}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InboundConfig"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessageResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/webhooks":{"get":{"operationId":"webhooks_listWebhooks","summary":"List webhook endpoints","deprecated":false,"description":"List webhook endpoints on the current account, including each id, URL, subscribed events, and signing secret. When basic auth is saved, username is returned and passwordSet is true. The password is not returned. Use the id with update or delete.","tags":["Webhooks"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointsResponse"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}},"post":{"operationId":"webhooks_createWebhook","summary":"Create a webhook endpoint on a server outside Pingram","deprecated":false,"description":"Create a webhook endpoint on a server outside Pingram. Pingram later POSTs signed JSON to that URL when one of the subscribed events happens. This call only saves the endpoint; it does not send a webhook and does not modify the destination server. The response includes id and a signing secret starting with pingram_whsecret_. Save it and verify the X-Pingram-Signature header. Updates keep this secret. At most 10 endpoints per account. The URL must be a public HTTPS URL and should return 2xx. Optional basic auth is sent as an Authorization header. Put it in basicAuth or in the URL, not both. The password is not returned.","tags":["Webhooks"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointUpsertRequest"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpoint"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}},"/webhooks/{endpointId}":{"put":{"operationId":"webhooks_updateWebhook","summary":"Replace a webhook endpoint","deprecated":false,"description":"Replace one webhook endpoint's URL and its full event subscription. The URL is a server outside Pingram. endpointId comes from list or create. The signing secret stays the same. events is the complete set; omitting an event unsubscribes it, and the previous URL stops receiving events. The previous URL and event list are not kept. The URL must be a public HTTPS URL. Omit basicAuth to keep stored credentials. null removes them. Omit the password to keep the stored password. The password is not returned.","tags":["Webhooks"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"endpointId","in":"path","required":true,"schema":{"type":"string"},"description":"Id of the webhook endpoint, from list or create."}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointUpsertRequest"}}}},"responses":{"200":{"description":"Successful response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpoint"}}}},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}},"delete":{"operationId":"webhooks_deleteWebhook","summary":"Delete one webhook endpoint by id from list or create","deprecated":false,"description":"Delete one webhook endpoint by id from list or create. That URL stops receiving its events. Other endpoints on the account are left as they are.","tags":["Webhooks"],"security":[{"apiKey":[]},{"clientCredentials":[]},{"endUser":[]},{"endUserHashed":[]}],"parameters":[{"name":"endpointId","in":"path","required":true,"schema":{"type":"string"},"description":"Id of the webhook endpoint, from list or create."}],"responses":{"204":{"description":"No Content"},"400":{"description":"Bad Request - validation errors, invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"Payment Required - usage limits exceeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}},"500":{"description":"Internal Server Error"},"502":{"description":"Bad Gateway - provider error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiErrorResponse"}}}}}}}},"components":{"schemas":{"ChannelsEnum":{"type":"string","enum":["EMAIL","INAPP_WEB","SMS","CALL","VOICE","PUSH","WEB_PUSH","SLACK"]},"ApiErrorBody":{"type":"object","description":"Structured error details for API error responses.","properties":{"code":{"type":"string","description":"Machine-readable error code."},"message":{"type":"string","description":"Human-readable error message."},"fix":{"type":"string","description":"Actionable hint for fixing the error."}},"required":["code","message"]},"ApiErrorResponse":{"type":"object","description":"Standard error response for API errors.","properties":{"trackingId":{"type":"string","description":"Unique tracking ID for the request."},"error":{"$ref":"#/components/schemas/ApiErrorBody"}},"required":["trackingId","error"]},"AcceptInviteRequest":{"type":"object","properties":{"token":{"type":"string"}},"required":["token"],"additionalProperties":false},"AcceptInviteResponse":{"type":"object","properties":{"success":{"type":"boolean"},"accountId":{"type":"string"},"userExists":{"type":"boolean"},"inviteeEmail":{"type":"string"}},"required":["success","accountId","userExists"],"additionalProperties":false},"AccountGetResponse":{"type":"object","properties":{"accountId":{"type":"string"},"accountType":{"type":"string","enum":["free","paid"]},"creator":{"type":"string"},"name":{"type":"string"},"messagesCap":{"type":"number"},"costCap":{"type":"number"},"smsCap":{"type":"number"},"callCap":{"type":"number"},"billingVersion":{"type":"number","enum":[1,3],"description":"When omitted, defaults to LATEST_BILLING_VERSION."},"anniversaryDate":{"type":"string","description":"ISO date (YYYY-MM-DD) when the billing cycle resets."},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"status":{"type":"string","enum":["verified","unverified","blocked"]},"subscriptionStatus":{"enum":["active","canceled","past_due","paused",null],"type":"string","nullable":true},"pendingDowngradeEffectiveDate":{"type":"string"},"pendingDowngradeCostCap":{"type":"number"},"pendingDowngradeAccountType":{"type":"string","enum":["free"]},"autoUpgrade":{"type":"boolean","description":"When true, paid accounts move up one budget tier at 90% of the monthly budget."},"billingAlerts":{"type":"object","properties":{"enabled":{"type":"boolean","description":"When false, saved addresses and thresholds are kept but no email is sent."},"emails":{"type":"array","items":{"type":"string"},"description":"Addresses that receive threshold emails. At most three."},"thresholds":{"type":"array","items":{"type":"number"},"description":"Percents to email, from 5 to 100 in steps of 5. At most five. At least one is required while enabled."}},"required":["enabled","emails","thresholds"],"additionalProperties":false,"description":"Email alerts for monthly usage. New accounts start enabled for the creator at 80% and 100%."}},"required":["accountId","accountType","messagesCap","costCap","anniversaryDate","createdAt","updatedAt"],"additionalProperties":false,"description":"GET /account response: public plan fields for the authenticated account."},"AccountPatchRequest":{"type":"object","properties":{"autoUpgrade":{"type":"boolean","description":"When true, automatically move up one budget tier at 90% of the monthly budget."},"billingAlerts":{"type":"object","properties":{"enabled":{"type":"boolean","description":"When false, saved addresses and thresholds are kept but no email is sent."},"emails":{"type":"array","items":{"type":"string"},"description":"Addresses that receive threshold emails. At most three."},"thresholds":{"type":"array","items":{"type":"number"},"description":"Percents to email, from 5 to 100 in steps of 5. At most five. At least one is required while enabled."}},"required":["enabled","emails","thresholds"],"additionalProperties":false,"description":"Email alerts for monthly usage. New accounts start enabled for the creator at 80% and 100%."}},"additionalProperties":false,"description":"PATCH /account request: billing preferences."},"AccountPaymentMethods":{"type":"object","properties":{"paymentMethods":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"brand":{"type":"string","description":"Card brand, such as visa or mastercard."},"last4":{"type":"string"},"expMonth":{"type":"number"},"expYear":{"type":"number"}},"required":["id","brand","last4","expMonth","expYear"],"additionalProperties":false,"description":"Saved card you can assign to this account or other accounts you own."}},"thisAccountPaymentMethodId":{"type":"string","description":"Card this account is billed on, when one is set."},"defaultForNewAccountsPaymentMethodId":{"type":"string","description":"Card new accounts you create will use by default."},"sharedAccountCount":{"type":"number","description":"How many of your accounts can use these cards, including this one."}},"required":["paymentMethods","sharedAccountCount"],"additionalProperties":false,"description":"GET /account/payment-methods and POST /account/payment-methods/assign response."},"AccountSummary":{"type":"object","properties":{"accountId":{"type":"string"},"name":{"type":"string"},"accountType":{"type":"string","enum":["free","paid"]},"createdAt":{"type":"string"},"status":{"type":"string","enum":["verified","unverified","blocked"]},"costCap":{"type":"number"}},"required":["accountId","accountType","createdAt","status","costCap"],"additionalProperties":false,"description":"Summary of an account the user can access (GET /accounts)."},"ArmVoiceInboundClaimRequest":{"type":"object","properties":{"inbound":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["script"]},"steps":{"type":"array","items":{"type":"object","properties":{"verb":{"type":"string","enum":["Say"]},"text":{"type":"string"}},"required":["verb","text"],"additionalProperties":false,"description":"One spoken line."}},"stream":{"type":"object","properties":{"audio":{"type":"boolean","description":"Live call audio. Omitted means off."},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"What the call socket carries. Omitted means the socket is open and carries neither."},"privacy":{"type":"object","properties":{"record":{"type":"boolean"},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"Omitted record and transcript mean both are off."}},"required":["type","steps"],"additionalProperties":false,"title":"Script"},{"type":"object","properties":{"type":{"type":"string","enum":["agent"]},"greeting":{"type":"string"},"agent":{"type":"object","properties":{"instructions":{"type":"string"},"model":{"description":"Configuration for which model processes the call, including its voice settings. `model` chooses the realtime model. `voiceId` must be a voice offered by that model.","oneOf":[{"type":"object","additionalProperties":false,"properties":{"effort":{"type":"string","enum":["minimal","low","medium","high","xhigh"]},"model":{"type":"string","enum":["openai:gpt-realtime-2.1"],"description":"Which realtime model processes the call."},"voiceId":{"type":"string","enum":["alloy","ash","ballad","coral","echo","sage","shimmer","verse","marin","cedar"]},"temperature":{"type":"number","description":"How varied replies are. 0 is focused, 1 is more creative. Default: 0.8."},"maxTokens":{"type":"number","description":"Maximum length of one reply, in tokens. Default: 4096."}},"required":["model"],"title":"OpenaiGptRealtime21"},{"type":"object","additionalProperties":false,"properties":{"effort":{"type":"string","enum":["minimal","low","medium","high","xhigh"]},"model":{"type":"string","enum":["openai:gpt-realtime-2.1-mini"],"description":"Which realtime model processes the call."},"voiceId":{"type":"string","enum":["alloy","ash","ballad","coral","echo","sage","shimmer","verse","marin","cedar"]},"temperature":{"type":"number","description":"How varied replies are. 0 is focused, 1 is more creative. Default: 0.8."},"maxTokens":{"type":"number","description":"Maximum length of one reply, in tokens. Default: 4096."}},"required":["model"],"title":"OpenaiGptRealtime21Mini"},{"type":"object","additionalProperties":false,"properties":{"effort":{"type":"string","enum":["none","low","medium","high","xhigh","max"]},"model":{"type":"string","enum":["openai:gpt-live-1"],"description":"Which realtime model processes the call."},"voiceId":{"type":"string","enum":["alloy","ash","ballad","coral","echo","sage","shimmer","verse","marin","cedar","quartz","ripple","vesper","willow","stone","gleam","meridian","bossa","tempo","beacon","delta","cinder"]},"temperature":{"type":"number","description":"How varied replies are. 0 is focused, 1 is more creative. Default: 0.8."},"maxTokens":{"type":"number","description":"Maximum length of one reply, in tokens. Default: 4096."}},"required":["model"],"title":"OpenaiGptLive1"},{"type":"object","additionalProperties":false,"properties":{"effort":{"type":"string","enum":["minimal","low","medium","high"]},"model":{"type":"string","enum":["google:gemini-3.1-flash-live-preview"],"description":"Which realtime model processes the call."},"voiceId":{"type":"string","enum":["Puck","Charon","Kore","Fenrir","Aoede","Leda","Orus","Zephyr"]},"temperature":{"type":"number","description":"How varied replies are. 0 is focused, 1 is more creative. Default: 0.8."},"maxTokens":{"type":"number","description":"Maximum length of one reply, in tokens. Default: 4096."}},"required":["model"],"title":"GoogleGemini31FlashLivePreview"},{"type":"object","additionalProperties":false,"properties":{"model":{"type":"string","enum":["xai:grok-voice-latest"],"description":"Which realtime model processes the call."},"voiceId":{"type":"string","enum":["eve","ara","rex","sal","leo"]},"temperature":{"type":"number","description":"How varied replies are. 0 is focused, 1 is more creative. Default: 0.8."},"maxTokens":{"type":"number","description":"Maximum length of one reply, in tokens. Default: 4096."}},"required":["model"],"title":"XaiGrokVoiceLatest"},{"type":"object","additionalProperties":false,"properties":{"language":{"type":"string","enum":["en","ar","bg","zh","hr","cs","da","nl","fil","fi","fr","de","el","he","hi","hu","id","it","ja","ko","ms","no","pl","pt","ro","ru","sk","es","sv","ta","tr","uk","vi"]},"model":{"type":"string","enum":["elevenlabs:eleven_realtime_v1_mini"],"description":"Which realtime model processes the call."},"voiceId":{"type":"string","enum":["brian","rachel","adam","antoni","elli","josh","bella","charlotte","dTmTLshIypwp08eftJH6","M8xXPW1xIZVqZLxYby5T","KbgdAMqTSb5aaLUaXEm2"]},"temperature":{"type":"number","description":"How varied replies are. 0 is focused, 1 is more creative. Default: 0.8."},"maxTokens":{"type":"number","description":"Maximum length of one reply, in tokens. Default: 4096."}},"required":["model"],"title":"ElevenlabsElevenRealtimeV1Mini"},{"type":"object","additionalProperties":false,"properties":{"language":{"type":"string","enum":["en","ar","bg","zh","hr","cs","da","nl","fil","fi","fr","de","el","he","hi","hu","id","it","ja","ko","ms","no","pl","pt","ro","ru","sk","es","sv","ta","tr","uk","vi"]},"model":{"type":"string","enum":["elevenlabs:eleven_realtime_v1_max"],"description":"Which realtime model processes the call."},"voiceId":{"type":"string","enum":["brian","rachel","adam","antoni","elli","josh","bella","charlotte","dTmTLshIypwp08eftJH6","M8xXPW1xIZVqZLxYby5T","KbgdAMqTSb5aaLUaXEm2"]},"temperature":{"type":"number","description":"How varied replies are. 0 is focused, 1 is more creative. Default: 0.8."},"maxTokens":{"type":"number","description":"Maximum length of one reply, in tokens. Default: 4096."}},"required":["model"],"title":"ElevenlabsElevenRealtimeV1Max"}]},"tools":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["transfer"],"description":"Transfer the live call to one of destinations."},"destinations":{"type":"array","items":{"type":"object","properties":{"phoneNumber":{"type":"string","description":"E.164 number to transfer the caller to."},"condition":{"type":"string","description":"When the model should choose this number. Required when more than one destination is set."},"holdSay":{"type":"string","description":"Spoken once to the caller while they wait. If holdAudio is also set, this sentence plays first and then the audio."},"holdAudio":{"type":"string","description":"`builtin:soft-piano`, `builtin:calm`, `builtin:bright`, or an HTTPS MP3 or WAV. Loops until the call connects. Omit it and the caller hears ringing."},"receiverInstruction":{"type":"string","description":"Shown to the agent with this number. Tells it whether and how to write the sentence spoken to the person who answers. Never spoken. Omit it and the agent is asked to say who is calling and why."}},"required":["phoneNumber","condition"],"additionalProperties":false},"description":"Numbers the agent can transfer to. Set a condition on each when there is more than one."}},"required":["type","destinations"],"additionalProperties":false,"description":"Transfer the caller to a phone number.","title":"Transfer"},{"type":"object","properties":{"type":{"type":"string","enum":["dtmf"],"description":"Send DTMF keypad tones during the call."}},"required":["type"],"additionalProperties":false,"description":"Let the agent send keypad tones.","title":"Dtmf"},{"type":"object","properties":{"type":{"type":"string","enum":["disconnect"],"description":"End the call after saying goodbye."}},"required":["type"],"additionalProperties":false,"description":"Let the agent hang up.","title":"Disconnect"},{"type":"object","properties":{"type":{"type":"string","enum":["weather"],"description":"Current weather for a city the caller names."}},"required":["type"],"additionalProperties":false,"description":"Look up the current weather for a city.","title":"Weather"},{"type":"object","properties":{"type":{"type":"string","enum":["custom"],"description":"Invoke an HTTPS webhook when the model calls this tool."},"name":{"type":"string","description":"Function name the model calls."},"description":{"type":"string","description":"When the model should use this tool."},"parameters":{"type":"object","additionalProperties":{},"description":"JSON Schema for the arguments the model passes."},"url":{"type":"string","description":"HTTPS webhook invoked when the model calls this tool during a call."},"beforeSpeech":{"type":"string","description":"Spoken before the webhook when this turn has not spoken yet."},"slowSpeechAfterSeconds":{"type":"number","description":"Wait this many seconds, then speak slowSpeech if the webhook is still running."},"slowSpeech":{"type":"string","description":"Spoken once when the webhook is still running after slowSpeechAfterSeconds."}},"required":["type","name","description","parameters"],"additionalProperties":false,"description":"Call an HTTPS webhook from the conversation.","title":"Custom"},{"type":"object","properties":{"type":{"type":"string","enum":["mcp"],"description":"Connect a remote MCP server and use its tools."},"url":{"type":"string","description":"MCP server URL."},"label":{"type":"string","description":"Optional name shown in the dashboard."}},"required":["type","url"],"additionalProperties":false,"description":"Load tools from a remote MCP server.","title":"Mcp"},{"type":"object","properties":{"type":{"type":"string","enum":["knowledge"],"description":"Search uploaded documents during the call."},"documents":{"type":"array","items":{"type":"object","properties":{"docId":{"type":"string","description":"Opaque identifier for an uploaded knowledge document."},"name":{"type":"string","description":"File name shown to the agent and in the dashboard."},"sizeBytes":{"type":"number","description":"File size in bytes."}},"required":["docId","name","sizeBytes"],"additionalProperties":false},"description":"Files the agent can search."}},"required":["type","documents"],"additionalProperties":false,"description":"Answer from uploaded documents.","title":"Knowledge"}]}},"variables":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"Placeholder name used inside {{name}} tags."},"description":{"type":"string","description":"What the value means. Passed to the model with the filled value."},"defaultValue":{"type":"string","description":"Used when the call does not pass this variable."}},"required":["name"],"additionalProperties":false}},"conversation":{"type":"object","properties":{"turnDetection":{"type":"string","enum":["semantic","vad"],"description":"How the agent decides the caller has finished speaking. Default: semantic."},"minEndOfTurnSilenceMs":{"type":"number","description":"Silence before the agent treats the turn as finished, in milliseconds. Default: 500."},"allowInterruptions":{"type":"boolean","description":"Whether the caller can interrupt the agent. Default: true."},"minInterruptionDurationMs":{"type":"number","description":"How long the caller must speak to count as an interruption, in milliseconds. Default: 300."},"silenceTimeoutSeconds":{"type":"number","description":"Seconds of silence before the agent hangs up. 0 never hangs up. Default: 30."},"maxCallLengthSeconds":{"type":"number","description":"Maximum call length in seconds. Default: 600."}},"additionalProperties":false,"description":"Turn-taking and call limits. Each omitted field uses its default."}},"required":["instructions","model"],"additionalProperties":false,"description":"Speech-to-speech block shared by inbound and outbound agent calls."},"stream":{"type":"object","properties":{"audio":{"type":"boolean","description":"Live call audio. Omitted means off."},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"What the call socket carries. Omitted means the socket is open and carries neither."},"privacy":{"type":"object","properties":{"record":{"type":"boolean"},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"Omitted record and transcript mean both are off."}},"required":["type","agent"],"additionalProperties":false,"title":"Agent"},{"type":"object","properties":{"type":{"type":"string","enum":["transfer"]},"to":{"type":"string"},"holdSay":{"type":"string","description":"Spoken once to the caller while they wait. If holdAudio is also set, this sentence plays first and then the audio."},"holdAudio":{"type":"string","description":"`builtin:soft-piano`, `builtin:calm`, `builtin:bright`, or an HTTPS MP3 or WAV. Loops until the call connects. Omit it and the caller hears ringing."},"receiverSay":{"type":"string","description":"Spoken to the person who answers, before the caller is connected."},"stream":{"type":"object","properties":{"audio":{"type":"boolean","description":"Live call audio. Omitted means off."},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"What the call socket carries. Omitted means the socket is open and carries neither."},"privacy":{"type":"object","properties":{"record":{"type":"boolean"},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"Omitted record and transcript mean both are off."}},"required":["type","to"],"additionalProperties":false,"title":"Transfer"},{"type":"object","properties":{"type":{"type":"string","enum":["elevenlabs"]},"stream":{"type":"object","properties":{"audio":{"type":"boolean","description":"Live call audio. Omitted means off."},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"What the call socket carries. Omitted means the socket is open and carries neither."},"privacy":{"type":"object","properties":{"record":{"type":"boolean"},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"Omitted record and transcript mean both are off."}},"required":["type"],"additionalProperties":false,"description":"Answer and SIP-transfer the caller to ElevenLabs. The destination is the called number.","title":"Elevenlabs"},{"type":"object","properties":{"type":{"type":"string","enum":["disabled"]}},"required":["type"],"additionalProperties":false,"title":"Disabled"},{"type":"object","properties":{"type":{"type":"string","enum":["stream"]},"stream":{"type":"object","properties":{"audio":{"type":"boolean","description":"Live call audio. Omitted means off."},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"What the call socket carries. Omitted means the socket is open and carries neither."},"privacy":{"type":"object","properties":{"record":{"type":"boolean"},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"Omitted record and transcript mean both are off."}},"required":["type"],"additionalProperties":false,"description":"The customer's websocket is the application side. No script and no agent.","title":"Stream"}]}},"required":["inbound"],"additionalProperties":false,"description":"Playground request that arms the shared test number for the signed-in user's phone."},"ArmVoiceInboundClaimResponse":{"type":"object","properties":{"callerNumber":{"type":"string","description":"E.164 number Pingram expects the call to come from."},"sharedNumber":{"type":"string","description":"Shared platform number to dial."}},"required":["callerNumber","sharedNumber"],"additionalProperties":false},"AssignPaymentMethodRequest":{"type":"object","properties":{"paymentMethodId":{"type":"string"},"assignment":{"type":"string","enum":["thisAccount","newAccounts","allAccounts"],"description":"Where to use a saved card. `thisAccount` bills this account only. `newAccounts` is used when you create another account. `allAccounts` bills every account that shares these cards and becomes the default for new accounts."}},"required":["paymentMethodId","assignment"],"additionalProperties":false,"description":"POST /account/payment-methods/assign request."},"AutoJoinGetResponse":{"type":"object","properties":{"accountId":{"type":"string"},"domains":{"type":"array","items":{"type":"string"}}},"required":["accountId","domains"],"additionalProperties":false},"AutoJoinPostResponse":{"type":"object","properties":{"accountId":{"type":"string"},"domains":{"type":"array","items":{"type":"string"}}},"required":["accountId","domains"],"additionalProperties":false},"AutoJoinRequestBody":{"type":"object","properties":{"domains":{"type":"array","items":{"type":"string"}}},"required":["domains"],"additionalProperties":false},"beeTokenV2":{"type":"object","properties":{"access_token":{"type":"string"},"v2":{"type":"boolean"}},"required":["access_token","v2"],"additionalProperties":false},"BillingEmail":{"type":"object","properties":{"email":{"type":"string","description":"Address that receives invoices and receipts.","minLength":3,"maxLength":320}},"additionalProperties":false,"description":"GET/PATCH /account/billing-email response."},"BillingPostRequestBody":{"type":"object","properties":{"budgetPriceId":{"type":"string","description":"Price ID for a monthly budget tier (all channels)."},"successUrl":{"type":"string"},"cancelUrl":{"type":"string"}},"required":["successUrl","cancelUrl"],"additionalProperties":false},"BillingPostResponseBody":{"type":"object","properties":{"accountId":{"type":"string"},"accountType":{"type":"string","enum":["free","paid"]},"creator":{"type":"string"},"name":{"type":"string"},"messagesCap":{"type":"number"},"costCap":{"type":"number"},"smsCap":{"type":"number"},"callCap":{"type":"number"},"billingVersion":{"type":"number","enum":[1,3],"description":"When omitted, defaults to LATEST_BILLING_VERSION."},"anniversaryDate":{"type":"string","description":"ISO date (YYYY-MM-DD) when the billing cycle resets."},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"status":{"type":"string","enum":["verified","unverified","blocked"]},"subscriptionStatus":{"enum":["active","canceled","past_due","paused",null],"type":"string","nullable":true},"pendingDowngradeEffectiveDate":{"type":"string"},"pendingDowngradeCostCap":{"type":"number"},"pendingDowngradeAccountType":{"type":"string","enum":["free"]},"autoUpgrade":{"type":"boolean","description":"When true, paid accounts move up one budget tier at 90% of the monthly budget."},"billingAlerts":{"type":"object","properties":{"enabled":{"type":"boolean","description":"When false, saved addresses and thresholds are kept but no email is sent."},"emails":{"type":"array","items":{"type":"string"},"description":"Addresses that receive threshold emails. At most three."},"thresholds":{"type":"array","items":{"type":"number"},"description":"Percents to email, from 5 to 100 in steps of 5. At most five. At least one is required while enabled."}},"required":["enabled","emails","thresholds"],"additionalProperties":false,"description":"Email alerts for monthly usage. New accounts start enabled for the creator at 80% and 100%."},"sessionId":{"type":"string"},"url":{"type":"string"}},"additionalProperties":false,"required":["accountId","accountType","anniversaryDate","costCap","createdAt","messagesCap","updatedAt"],"description":"POST /billing response: account fields plus a URL when payment is needed."},"BrandWebhookResponse":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false,"description":"Response after a 10DLC brand status webhook."},"BroadcastMetricsResponse":{"type":"object","properties":{"total":{"type":"number"},"sent":{"type":"number"},"delivered":{"type":"number"},"opened":{"type":"number"},"clicked":{"type":"number"},"bounced":{"type":"number"},"complained":{"type":"number"},"unsubscribed":{"type":"number"},"skipped":{"type":"number"},"failed":{"type":"number"},"status":{"type":"string","enum":["draft","scheduled","sending","sent","paused","canceled"],"description":"Lifecycle status of an email broadcast."},"pausedReason":{"type":"string","enum":["PAUSED_BY_USER","REPUTATION_GUARD","PLAN_EXCEEDED","PENDING_VERIFICATION","AUDIENCE_LIMITS_EXCEEDED","UNVERIFIED_DOMAIN","SPAM_CONTENT"]},"scheduleAt":{"type":"string"}},"required":["bounced","clicked","complained","delivered","failed","opened","sent","skipped","status","total","unsubscribed"],"additionalProperties":false,"description":"Live send metrics. Counters are flattened at the top level."},"BroadcastResponse":{"type":"object","properties":{"broadcastId":{"type":"string","description":"UUIDv7 (time-ordered)."},"name":{"type":"string"},"status":{"type":"string","enum":["draft","scheduled","sending","sent","paused","canceled"],"description":"Lifecycle status of an email broadcast."},"pausedReason":{"type":"string","enum":["PAUSED_BY_USER","REPUTATION_GUARD","PLAN_EXCEEDED","PENDING_VERIFICATION","AUDIENCE_LIMITS_EXCEEDED","UNVERIFIED_DOMAIN","SPAM_CONTENT"]},"type":{"type":"string","description":"Notification type id. Required before send or schedule."},"channel":{"type":"string","enum":["email"],"description":"Email-only in v1; forward-compatible field."},"audience":{"type":"object","properties":{"filter":{"type":"object","additionalProperties":{}},"emails":{"type":"array","items":{"type":"string"}}},"additionalProperties":false,"description":"Broadcast audience: exactly one of `filter` (Mongo-style query evaluated against synced user objects) or `emails` (raw list, max 10,000 addresses; for larger audiences use filter after syncing users via the Users API)."},"fromName":{"type":"string"},"fromAddress":{"type":"string","description":"From address. Use an address on a domain verified for this account to email other people. The shared address `noreply@pingram.io` can send a test broadcast only to your own account email as the sole recipient. Verify a domain to send to a wider audience."},"replyToAddress":{"type":"string"},"subject":{"type":"string"},"html":{"type":"string","description":"Send-ready HTML body."},"internalTemplate":{"type":"string","description":"Optional visual-editor source. Can only be set at create time and must stay paired with html."},"scheduleAt":{"type":"string","description":"ISO datetime for scheduled broadcasts."},"archivedAt":{"type":"string","description":"Set when the user archives the broadcast; hidden from the default list."},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["broadcastId","name","status","channel","audience","fromName","fromAddress","subject","html","createdAt","updatedAt"],"additionalProperties":false,"description":"Broadcast as returned by the API (html + optional internalTemplate on single-get only)."},"CampaignWebhookResponse":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false,"description":"Response after a 10DLC campaign status webhook."},"CancelSubscriptionRequest":{"type":"object","properties":{"reason":{"type":"string","description":"Optional note about why you are canceling. Helps us improve the product.","maxLength":5000}},"additionalProperties":false,"description":"POST /account/subscription/cancel request."},"ChangePhoneRequest":{"type":"object","properties":{"phoneNumber":{"type":"string"}},"required":["phoneNumber"],"additionalProperties":false},"CheckDomainDnsRequest":{"type":"object","properties":{"trackingSubdomain":{"type":"string","description":"Subdomain to check for click tracking, the open pixel, and the unsubscribe page, such as links. Defaults to links on this sending domain."}},"additionalProperties":false},"ConfirmChangeEmailRequest":{"type":"object","properties":{"code":{"type":"string"},"newPassword":{"type":"string","description":"The password chosen when a social-only account started the change. Required while the code was sent to the current inbox."}},"required":["code"],"additionalProperties":false},"ConfirmChangeEmailResponse":{"type":"object","properties":{"message":{"type":"string"},"codeSentToNewEmail":{"type":"boolean","description":"True when the current inbox approved the change and a code was sent to the new address. False when the login email itself was updated."}},"required":["message","codeSentToNewEmail"],"additionalProperties":false,"description":"Result of confirming one step of a login email change."},"ConfirmPasswordChangeRequest":{"type":"object","properties":{"code":{"type":"string"},"password":{"type":"string","description":"The same new password sent when the change started."}},"required":["code","password"],"additionalProperties":false},"CreateAccountRequest":{"type":"object","properties":{"name":{"type":"string"},"plan":{"type":"object","properties":{"tier":{"type":"string","enum":["budget_20","budget_50","budget_100","budget_250","budget_500","budget_1000"]},"sourceBillingAccountId":{"type":"string","description":"Account whose saved payment method is copied onto the new account. The caller must be an owner of this account."}},"required":["tier","sourceBillingAccountId"],"additionalProperties":false,"description":"Billing to copy onto a new additional account."},"memberEmails":{"type":"array","items":{"type":"string"},"description":"Emails to add or invite to the new account. Existing members of any account the caller belongs to are added directly; everyone else is invited."}},"required":["name"],"additionalProperties":false,"description":"Request body for POST /accounts (create additional account)."},"CreateAccountResponse":{"type":"object","properties":{"accountId":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["verified","unverified","blocked"]},"subscriptionStatus":{"enum":["active","canceled","past_due","paused",null],"type":"string","nullable":true},"apiKey":{"type":"string","description":"Default secret API key for the new account (`pingram_sk_…`)."}},"required":["accountId","name","status","apiKey"],"additionalProperties":false,"description":"Response for POST /accounts"},"CreateBroadcastRequest":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string","description":"Notification type id. Optional on create; required before send/schedule. Created on the fly when missing."},"channel":{"type":"string","enum":["email"]},"audience":{"type":"object","properties":{"filter":{"type":"object","additionalProperties":{}},"emails":{"type":"array","items":{"type":"string"}}},"additionalProperties":false,"description":"Broadcast audience: exactly one of `filter` (Mongo-style query evaluated against synced user objects) or `emails` (raw list, max 10,000 addresses; for larger audiences use filter after syncing users via the Users API)."},"fromName":{"type":"string"},"fromAddress":{"type":"string","description":"From address. Use an address on a domain verified for this account to email other people. The shared address `noreply@pingram.io` can send a test broadcast only to your own account email as the sole recipient. Verify a domain to send to a wider audience."},"replyToAddress":{"type":"string"},"subject":{"type":"string"},"html":{"type":"string"},"internalTemplate":{"type":"string","description":"Optional visual-editor source. Pair with html. A later update can add it to a draft by sending it with html."}},"required":["name","audience","fromName","fromAddress","subject","html"],"additionalProperties":false},"CreateKeyRequest":{"type":"object","properties":{"keyType":{"type":"string","enum":["secret","public"],"description":"Type of key to create - secret for server-to-server, public for client-side"},"environmentId":{"type":"string","description":"Optional environment ID to scope the key to a specific environment"},"name":{"type":"string","description":"Human-readable name/description for the key"}},"required":["keyType","name"],"additionalProperties":false,"description":"Request body for POST /keys endpoint Creates a new API key for an environment"},"CreateKeyResponse":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the key (jti)"},"key":{"type":"string","description":"The full API key string - ONLY returned on creation, never shown again"},"keyType":{"type":"string","enum":["secret","public"],"description":"Type of API key that was created"},"environmentId":{"type":"string","description":"Environment ID if the key is scoped to a specific environment"},"name":{"type":"string","description":"Human-readable name/description for the key"},"createdAt":{"type":"string","description":"ISO 8601 timestamp when the key was created"}},"required":["id","key","keyType","name","createdAt"],"additionalProperties":false,"description":"Response body for POST /keys endpoint Returns the newly created API key (only time the full key is returned)"},"CreateLibraryRequest":{"type":"object","properties":{"filename":{"type":"string","description":"Original filename, including extension (e.g. hero.png)."},"contentType":{"type":"string","description":"Image MIME type. One of image/png, image/jpeg, image/gif, or image/webp."}},"required":["filename","contentType"],"additionalProperties":false},"CreateLibraryResponse":{"type":"object","properties":{"id":{"type":"string"},"useCase":{"type":"string","enum":["media","logos"]},"filename":{"type":"string"},"key":{"type":"string"},"url":{"type":"string","description":"Public URL to use in emails after the file is uploaded to uploadUrl."},"uploadUrl":{"type":"string","description":"Time-limited upload URL. PUT the file bytes with the same Content-Type."},"contentType":{"type":"string"}},"required":["id","useCase","filename","key","url","uploadUrl","contentType"],"additionalProperties":false},"CreatePaymentMethodSetupRequest":{"type":"object","properties":{"successUrl":{"type":"string"},"cancelUrl":{"type":"string"}},"required":["successUrl","cancelUrl"],"additionalProperties":false,"description":"POST /account/payment-methods/setup request."},"CreatePersonalAccessTokenRequest":{"type":"object","properties":{"name":{"type":"string","description":"Human-readable name for the token"},"expiresAt":{"type":"string","description":"Optional ISO-8601 expiry. Omit for a non-expiring token."}},"required":["name"],"additionalProperties":false},"CreatePersonalAccessTokenResponse":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"tokenPrefix":{"type":"string"},"createdAt":{"type":"string"},"expiresAt":{"type":"string"},"lastUsedAt":{"type":"string"},"revoked":{"type":"boolean"},"token":{"type":"string","description":"Full token — returned only on create. Store it securely; it cannot be retrieved again."}},"required":["createdAt","id","name","revoked","token","tokenPrefix"],"additionalProperties":false},"DeleteAccountRequest":{"type":"object","properties":{"reason":{"type":"string"}},"additionalProperties":false},"DeleteKeyResponse":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false,"description":"Response body for DELETE /keys/{keyId} endpoint Confirms successful revocation of an API key"},"DeleteUserResponse":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false},"DomainDnsCheck":{"type":"object","properties":{"sender":{"type":"string"},"records":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["dkim","mail_from_spf","mail_from_mx","dmarc","inbound_mx","trackingCname"]},"label":{"type":"string"},"required":{"type":"boolean"},"found":{"type":"boolean"},"host":{"type":"string"},"recordType":{"type":"string","enum":["TXT","MX","CNAME"]},"expected":{"type":"string"},"observed":{"type":"array","items":{"type":"string"}}},"required":["id","label","required","found","host","recordType","expected"],"additionalProperties":false}},"canStartVerification":{"type":"boolean"},"checkedAt":{"type":"string"}},"required":["sender","records","canStartVerification","checkedAt"],"additionalProperties":false},"EmailAuthTokenPostRequest":{"type":"object","properties":{"uid":{"type":"string"}},"additionalProperties":false},"EmailComponentPatchRequest":{"type":"object","properties":{"name":{"type":"string"},"internal":{"type":"string"},"internalPage":{"type":"string"},"html":{"type":"string"}},"additionalProperties":false},"EmailComponentPostRequest":{"type":"object","properties":{"componentId":{"type":"string"},"name":{"type":"string"},"internal":{"type":"string"},"internalPage":{"type":"string"},"html":{"type":"string"}},"required":["componentId","name"],"additionalProperties":false},"EmailComponentResponse":{"type":"object","properties":{"envId":{"type":"string"},"componentId":{"type":"string"},"name":{"type":"string"},"internal":{"type":"string"},"internalPage":{"type":"string"},"html":{"type":"string"},"createdAt":{"type":"string"},"modifiedAt":{"type":"string"},"referencedBy":{"type":"array","items":{"type":"object","properties":{"notificationId":{"type":"string"},"channel":{"$ref":"#/components/schemas/ChannelsEnum"},"templateId":{"type":"string"}},"required":["notificationId","channel","templateId"],"additionalProperties":false}},"channel":{"type":"string","enum":["EMAIL"]}},"required":["envId","componentId","name","internal","internalPage","html","createdAt","modifiedAt","referencedBy","channel"],"additionalProperties":false},"Environment":{"type":"object","properties":{"clientId":{"type":"string"},"clientSecret":{"type":"string"},"title":{"type":"string"},"disableSending":{"type":"array","items":{"$ref":"#/components/schemas/ChannelsEnum"}},"secureMode":{"type":"boolean"}},"required":["clientId","clientSecret","title","disableSending","secureMode"],"additionalProperties":false},"EnvironmentPatchRequest":{"type":"object","properties":{"resetSecret":{"type":"boolean"},"disableSending":{"type":"array","items":{"$ref":"#/components/schemas/ChannelsEnum"}},"title":{"type":"string"},"secureMode":{"type":"boolean"}},"additionalProperties":false},"FirstAccountRequest":{"type":"object","properties":{"attribution":{"type":"object","additionalProperties":{"type":"string"},"description":"First-touch PostHog props from the client; attached to signup events."}},"additionalProperties":false},"FirstAccountResponse":{"type":"object","properties":{"success":{"type":"boolean"},"accountId":{"type":"string"}},"required":["success","accountId"],"additionalProperties":false},"GetAccountMetadataResponse":{"type":"object","properties":{"userAccountMetadata":{"type":"object","properties":{"logo":{"type":"string"},"environmentVapidPublicKey":{"type":"string"},"hasWebPushEnabled":{"type":"boolean"}},"required":["logo","environmentVapidPublicKey","hasWebPushEnabled"],"additionalProperties":false}},"required":["userAccountMetadata"],"additionalProperties":false},"GetEmailComponentsResponse":{"type":"array","items":{"type":"object","properties":{"envId":{"type":"string"},"componentId":{"type":"string"},"name":{"type":"string"},"internal":{"type":"string"},"internalPage":{"type":"string"},"html":{"type":"string"},"createdAt":{"type":"string"},"modifiedAt":{"type":"string"},"referencedBy":{"type":"array","items":{"type":"object","properties":{"notificationId":{"type":"string"},"channel":{"$ref":"#/components/schemas/ChannelsEnum"},"templateId":{"type":"string"}},"required":["notificationId","channel","templateId"],"additionalProperties":false}},"channel":{"type":"string","enum":["EMAIL"]}},"required":["envId","componentId","name","internal","internalPage","html","createdAt","modifiedAt","referencedBy","channel"],"additionalProperties":false}},"GetEnvironmentsResponse":{"type":"array","items":{"type":"object","properties":{"clientId":{"type":"string"},"clientSecret":{"type":"string"},"title":{"type":"string"},"disableSending":{"type":"array","items":{"$ref":"#/components/schemas/ChannelsEnum"}},"secureMode":{"type":"boolean"}},"required":["clientId","clientSecret","title","disableSending","secureMode"],"additionalProperties":false}},"GetInappNotificationsResponse":{"type":"object","properties":{"notifications":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"notificationId":{"type":"string"},"subNotificationId":{"type":"string"},"seen":{"type":"boolean"},"title":{"type":"string"},"redirectURL":{"type":"string"},"imageURL":{"type":"string"},"deliveryOptions":{"type":"object","properties":{"defaultDeliveryOption":{"type":"string","enum":["off","instant"]},"off":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"instant":{"type":"object","properties":{"enabled":{"type":"boolean"},"batching":{"type":"boolean"},"batchingKey":{"type":"string"},"batchingWindow":{"type":"number"}},"required":["enabled"],"additionalProperties":false}},"required":["defaultDeliveryOption"],"additionalProperties":false},"template":{"anyOf":[{"type":"object","properties":{"envId":{"type":"string"},"notificationId":{"type":"string"},"templateId":{"type":"string"},"channel":{"$ref":"#/components/schemas/ChannelsEnum"},"default":{"type":"boolean"},"isDefaultFor":{"type":"object","additionalProperties":{"type":"boolean"}}},"required":["envId","notificationId","templateId","channel","default"],"additionalProperties":false},{"type":"string"}]},"parameters":{"type":"object","additionalProperties":{}},"date":{"type":"string"},"opened":{"type":"string"},"clicked":{"type":"string"},"archived":{"type":"string"},"actioned1":{"type":"string"},"actioned2":{"type":"string"},"replies":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"message":{"type":"string"}},"required":["date","message"],"additionalProperties":false}},"expDate":{"type":"string"}},"required":["date","id","notificationId","seen","title"],"additionalProperties":false}}},"required":["notifications"],"additionalProperties":false},"GetKeysResponse":{"type":"object","properties":{"keys":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for the key (jti)"},"key":{"type":"string","description":"The full key string with prefix (shown for reference but should be stored securely by user)"},"keyType":{"type":"string","enum":["secret","public"],"description":"Type of API key"},"environmentId":{"type":"string","description":"Environment ID if the key is scoped to a specific environment"},"accountId":{"type":"string","description":"The account ID that owns this key"},"name":{"type":"string","description":"Human-readable name/description for the key"},"revoked":{"type":"boolean","description":"Whether the key has been revoked"},"createdAt":{"type":"string","description":"ISO 8601 timestamp when the key was created"},"lastUsedAt":{"type":"string","description":"ISO 8601 timestamp of when the key was last used (if tracked)"}},"required":["id","key","keyType","accountId","name","revoked","createdAt"],"additionalProperties":false},"description":"Array of API key metadata (does not include the actual key strings)"}},"required":["keys"],"additionalProperties":false,"description":"Response body for GET /keys endpoint Lists all API keys for the authenticated account"},"GetLogsResponse":{"type":"object","properties":{"messages":{"type":"array","items":{"type":"object","properties":{"trackingId":{"type":"string"},"eventType":{"type":"string"},"timestamp":{"type":"string"},"epochMs":{"type":"number"},"inbox":{"type":"string","description":"Address that received the mail. Same value as `matched.email` on the EMAIL_INBOUND webhook, including when that address was only in Cc or Bcc."},"from":{"type":"string"},"fromName":{"type":"string"},"subject":{"type":"string"},"to":{"type":"array","items":{"type":"string"},"description":"Original To header addresses. Not the address that received the mail."},"cc":{"type":"array","items":{"type":"string"},"description":"Original Cc header addresses."},"bcc":{"type":"array","items":{"type":"string"},"description":"Bcc header addresses still on the delivered message. Usually omitted, because the Bcc header is removed before delivery."},"replyTo":{"type":"string"},"bodyText":{"type":"string"},"bodyHtml":{"type":"string"},"attachments":{"type":"array","items":{"type":"object","properties":{"filename":{"type":"string","description":"Original filename from the message."},"contentType":{"type":"string","description":"MIME type of the file."},"size":{"type":"number","description":"Size in bytes. This response does not include the file bytes."},"contentId":{"type":"string","description":"Content-ID with angle brackets removed, so it matches `cid:` references in `bodyHtml`. Omitted when the part has no Content-ID."},"contentDisposition":{"type":"string","enum":["inline","attachment"],"description":"`inline` when the HTML body references this file; `attachment` when it is a separate file. Omitted when the message does not say which."}},"required":["filename","contentType","size"],"additionalProperties":false}},"media":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string"},"contentType":{"type":"string"}},"required":["url"],"additionalProperties":false},"description":"Inbound MMS attachments (includes contentType when available)."},"messageId":{"type":"string"},"inReplyTo":{"type":"string"},"references":{"type":"string"},"resolutionType":{"type":"string","enum":["reply","builtin","custom","inbound"]}},"required":["trackingId","eventType","timestamp","epochMs"],"additionalProperties":false}},"nextCursor":{"type":"string"}},"required":["messages"],"additionalProperties":false},"GetMembersResponse":{"type":"array","items":{"type":"object","properties":{"accountId":{"type":"string"},"userId":{"type":"string"},"createdAt":{"type":"string"},"role":{"type":"string","enum":["owner","admin"]},"email":{"type":"string"},"groups":{"type":"array","items":{"type":"string"}},"enabledMFAs":{"type":"array","items":{"type":"string","enum":["SOFTWARE_TOKEN_MFA"],"description":"MFA methods supported by the profile MFA API."}}},"required":["accountId","userId","createdAt","role"],"additionalProperties":false}},"GetMetricsResponse":{"type":"array","items":{"type":"object","properties":{"Id":{"type":"string","description":"<p>The short name you specified to represent this metric.</p>"},"Label":{"type":"string","description":"<p>The human-readable label associated with the data.</p>"},"Timestamps":{"type":"array","items":{"type":"string","format":"date-time"},"description":"<p>The timestamps for the data points, formatted in Unix timestamp format. The number of             timestamps always matches the number of values and the value for Timestamps[x] is             Values[x].</p>"},"Values":{"type":"array","items":{"type":"number"},"description":"<p>The data points for the metric corresponding to <code>Timestamps</code>. The number of             values always matches the number of timestamps and the timestamp for Values[x] is             Timestamps[x].</p>"},"StatusCode":{"type":"string","enum":["Complete","Forbidden","InternalError","PartialData"]},"Messages":{"type":"array","items":{"type":"object","properties":{"Code":{"type":"string","description":"<p>The error code or status code associated with the message.</p>"},"Value":{"type":"string","description":"<p>The message text.</p>"}},"additionalProperties":false,"description":"<p>A message returned by the <code>GetMetricData</code>API, including a code and a             description.</p>          <p>If a cross-Region <code>GetMetricData</code> operation fails with a code of             <code>Forbidden</code> and a value of <code>Authentication too complex to retrieve                 cross region data</code>, you can correct the problem by running the             <code>GetMetricData</code> operation in the same Region where the metric data             is.</p>"},"description":"<p>A list of messages with additional information about the data returned.</p>"}},"additionalProperties":false,"description":"<p>A <code>GetMetricData</code> call returns an array of <code>MetricDataResult</code>             structures. Each of these structures includes the data points for that metric, along             with the timestamps of those data points and other identifying information.</p>"}},"GetNotificationsResponse":{"type":"array","items":{"type":"object","properties":{"envId":{"type":"string"},"notificationId":{"type":"string"},"title":{"type":"string"},"channels":{"type":"array","items":{"$ref":"#/components/schemas/ChannelsEnum"}},"enabled":{"type":"boolean"},"deduplication":{"type":"object","properties":{"duration":{"type":"number"}},"required":["duration"],"additionalProperties":false},"throttling":{"type":"object","properties":{"max":{"type":"number"},"period":{"type":"number"},"unit":{"type":"string","enum":["seconds","minutes","hours","days","months","years"]},"forever":{"type":"boolean"},"scope":{"type":"array","minItems":2,"items":{"type":"string","enum":["userId","notificationId"]},"maxItems":2}},"required":["max","period","unit","forever","scope"],"additionalProperties":false},"retention":{"type":"number"},"options":{"type":"object","properties":{"EMAIL":{"type":"object","properties":{"defaultDeliveryOption":{"type":"string","enum":["off","instant","hourly","daily","weekly","monthly"]},"off":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"instant":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"hourly":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"daily":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"weekly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"day":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"monthly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"date":{"type":"string","enum":["first","last"]}},"required":["enabled"],"additionalProperties":false}},"required":["defaultDeliveryOption"],"additionalProperties":false},"INAPP_WEB":{"type":"object","properties":{"defaultDeliveryOption":{"type":"string","enum":["off","instant"]},"off":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"instant":{"type":"object","properties":{"enabled":{"type":"boolean"},"batching":{"type":"boolean"},"batchingKey":{"type":"string"},"batchingWindow":{"type":"number"}},"required":["enabled"],"additionalProperties":false}},"required":["defaultDeliveryOption"],"additionalProperties":false},"SMS":{"type":"object","properties":{"defaultDeliveryOption":{"type":"string","enum":["off","instant","hourly","daily","weekly","monthly"]},"off":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"instant":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"hourly":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"daily":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"weekly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"day":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"monthly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"date":{"type":"string","enum":["first","last"]}},"required":["enabled"],"additionalProperties":false}},"required":["defaultDeliveryOption"],"additionalProperties":false},"CALL":{"type":"object","properties":{"defaultDeliveryOption":{"type":"string","enum":["off","instant","hourly","daily","weekly","monthly"]},"off":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"instant":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"hourly":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"daily":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"weekly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"day":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"monthly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"date":{"type":"string","enum":["first","last"]}},"required":["enabled"],"additionalProperties":false}},"required":["defaultDeliveryOption"],"additionalProperties":false},"VOICE":{"type":"object","properties":{"defaultDeliveryOption":{"type":"string","enum":["off","instant","hourly","daily","weekly","monthly"]},"off":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"instant":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"hourly":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"daily":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"weekly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"day":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"monthly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"date":{"type":"string","enum":["first","last"]}},"required":["enabled"],"additionalProperties":false}},"required":["defaultDeliveryOption"],"additionalProperties":false},"PUSH":{"type":"object","properties":{"defaultDeliveryOption":{"type":"string","enum":["off","instant","hourly","daily","weekly","monthly"]},"off":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"instant":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"hourly":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"daily":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"weekly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"day":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"monthly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"date":{"type":"string","enum":["first","last"]}},"required":["enabled"],"additionalProperties":false}},"required":["defaultDeliveryOption"],"additionalProperties":false},"WEB_PUSH":{"type":"object","properties":{"defaultDeliveryOption":{"type":"string","enum":["off","instant","hourly","daily","weekly","monthly"]},"off":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"instant":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"hourly":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"daily":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"weekly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"day":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"monthly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"date":{"type":"string","enum":["first","last"]}},"required":["enabled"],"additionalProperties":false}},"required":["defaultDeliveryOption"],"additionalProperties":false},"SLACK":{"type":"object","properties":{"defaultDeliveryOption":{"type":"string","enum":["off","instant","hourly","daily","weekly","monthly"]},"off":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"instant":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"hourly":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"daily":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"weekly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"day":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"monthly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"date":{"type":"string","enum":["first","last"]}},"required":["enabled"],"additionalProperties":false}},"required":["defaultDeliveryOption"],"additionalProperties":false}},"additionalProperties":false},"templates":{"type":"array","items":{"type":"object","properties":{"channel":{"$ref":"#/components/schemas/ChannelsEnum"},"templateIds":{"type":"array","items":{"type":"string"}}},"required":["channel","templateIds"],"additionalProperties":false}}},"required":["envId","notificationId","title","channels","enabled"],"additionalProperties":false}},"GetPublicComponentsResponse":{"type":"array","items":{}},"GetSendersResponse":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"waitingFor":{"type":"string","description":"What is still missing before new mail can use the tracking subdomain."},"sender":{"type":"string"},"status":{"type":"string","enum":["SUCCESS","PENDING","FAILED","TEMPORARY_FAILURE","NOT_STARTED"]},"lastSync":{"type":"string","format":"date-time"},"verificationTokens":{"type":"array","items":{"type":"string"}},"mailFromDomainStatus":{"type":"string","enum":["PENDING","SUCCESS","FAILED","TEMPORARY_FAILURE"]},"createdAt":{"type":"string"},"privateDKIMKey":{"type":"string"},"reminderSentAt":{"type":"string"},"selector":{"type":"string"},"verificationRecords":{"type":"object","properties":{"dkim":{"type":"object","properties":{"recordType":{"type":"string","enum":["TXT","MX","CNAME"]},"recordName":{"type":"string","description":"Relative name for the parent DNS zone UI (e.g. pingram._domainkey.testing)."},"host":{"type":"string","description":"Full hostname (e.g. pingram._domainkey.testing.something.com)."},"recordValue":{"type":"string"},"priority":{"type":"number"},"required":{"type":"boolean"}},"required":["recordType","recordName","host","recordValue"],"additionalProperties":false,"description":"DNS record the customer must publish for domain verification."},"mail_from_spf":{"type":"object","properties":{"recordType":{"type":"string","enum":["TXT","MX","CNAME"]},"recordName":{"type":"string","description":"Relative name for the parent DNS zone UI (e.g. pingram._domainkey.testing)."},"host":{"type":"string","description":"Full hostname (e.g. pingram._domainkey.testing.something.com)."},"recordValue":{"type":"string"},"priority":{"type":"number"},"required":{"type":"boolean"}},"required":["recordType","recordName","host","recordValue"],"additionalProperties":false,"description":"DNS record the customer must publish for domain verification."},"mail_from_mx":{"type":"object","properties":{"recordType":{"type":"string","enum":["TXT","MX","CNAME"]},"recordName":{"type":"string","description":"Relative name for the parent DNS zone UI (e.g. pingram._domainkey.testing)."},"host":{"type":"string","description":"Full hostname (e.g. pingram._domainkey.testing.something.com)."},"recordValue":{"type":"string"},"priority":{"type":"number"},"required":{"type":"boolean"}},"required":["recordType","recordName","host","recordValue"],"additionalProperties":false,"description":"DNS record the customer must publish for domain verification."},"dmarc":{"type":"object","properties":{"recordType":{"type":"string","enum":["TXT","MX","CNAME"]},"recordName":{"type":"string","description":"Relative name for the parent DNS zone UI (e.g. pingram._domainkey.testing)."},"host":{"type":"string","description":"Full hostname (e.g. pingram._domainkey.testing.something.com)."},"recordValue":{"type":"string"},"priority":{"type":"number"},"required":{"type":"boolean"}},"required":["recordType","recordName","host","recordValue"],"additionalProperties":false,"description":"DNS record the customer must publish for domain verification."},"inbound_mx":{"type":"object","properties":{"recordType":{"type":"string","enum":["TXT","MX","CNAME"]},"recordName":{"type":"string","description":"Relative name for the parent DNS zone UI (e.g. pingram._domainkey.testing)."},"host":{"type":"string","description":"Full hostname (e.g. pingram._domainkey.testing.something.com)."},"recordValue":{"type":"string"},"priority":{"type":"number"},"required":{"type":"boolean"}},"required":["recordType","recordName","host","recordValue"],"additionalProperties":false,"description":"DNS record the customer must publish for domain verification."},"trackingCname":{"type":"object","properties":{"recordType":{"type":"string","enum":["TXT","MX","CNAME"]},"recordName":{"type":"string","description":"Relative name for the parent DNS zone UI (e.g. pingram._domainkey.testing)."},"host":{"type":"string","description":"Full hostname (e.g. pingram._domainkey.testing.something.com)."},"recordValue":{"type":"string"},"priority":{"type":"number"},"required":{"type":"boolean"}},"required":["recordType","recordName","host","recordValue"],"additionalProperties":false,"description":"DNS record the customer must publish for domain verification."}},"additionalProperties":false,"description":"Keyed by record id — computed on domain API responses, not stored in DB."},"trackingSubdomain":{"type":"string","description":"Subdomain recipients see on click tracking, the open pixel, and the unsubscribe page, such as links."},"trackingStatus":{"type":"string","enum":["NOT_STARTED","PENDING","ACTIVE","FAILED"],"description":"Whether tracked links on this subdomain are not started, waiting, active, or failed."},"trackingFailureReason":{"type":"string","enum":["cname_missing","cname_proxied","cname_conflict","cert_failed","probe_failed","dkim_lost"],"description":"Why tracked links on this subdomain are not active, when setup did not succeed."}},"required":["createdAt","lastSync","selector","sender","status"]}},"GetTemplatesListResponse":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"envId":{"type":"string"},"notificationId":{"type":"string"},"templateId":{"type":"string"},"channel":{"$ref":"#/components/schemas/ChannelsEnum"},"default":{"type":"boolean"},"isDefaultFor":{"type":"object","additionalProperties":{"type":"boolean"}},"html":{"type":"string"},"previewText":{"type":"string"},"internal":{"type":"string"},"subject":{"type":"string"},"senderName":{"type":"string"},"senderEmail":{"type":"string"}},"required":["channel","default","envId","html","internal","notificationId","senderEmail","senderName","subject","templateId"],"additionalProperties":false},{"type":"object","additionalProperties":false,"properties":{"title":{"type":"string"},"redirectURL":{"type":"string"},"imageURL":{"type":"string"},"instant":{"type":"object","properties":{"title":{"type":"string"},"redirectURL":{"type":"string"},"imageURL":{"type":"string"}},"required":["title","redirectURL","imageURL"],"additionalProperties":false},"batch":{"type":"object","properties":{"title":{"type":"string"},"redirectURL":{"type":"string"},"imageURL":{"type":"string"}},"required":["title","redirectURL","imageURL"],"additionalProperties":false},"envId":{"type":"string"},"notificationId":{"type":"string"},"templateId":{"type":"string"},"channel":{"$ref":"#/components/schemas/ChannelsEnum"},"default":{"type":"boolean"},"isDefaultFor":{"type":"object","additionalProperties":{"type":"boolean"}}},"required":["batch","channel","default","envId","imageURL","instant","notificationId","redirectURL","templateId","title"]},{"type":"object","properties":{"envId":{"type":"string"},"notificationId":{"type":"string"},"templateId":{"type":"string"},"channel":{"$ref":"#/components/schemas/ChannelsEnum"},"default":{"type":"boolean"},"isDefaultFor":{"type":"object","additionalProperties":{"type":"boolean"}},"text":{"type":"string"},"mediaUrls":{"type":"array","items":{"type":"string"},"description":"Set when sending MMS (outbound)."}},"required":["channel","default","envId","notificationId","templateId","text"],"additionalProperties":false},{"type":"object","properties":{"envId":{"type":"string"},"notificationId":{"type":"string"},"templateId":{"type":"string"},"channel":{"$ref":"#/components/schemas/ChannelsEnum"},"default":{"type":"boolean"},"isDefaultFor":{"type":"object","additionalProperties":{"type":"boolean"}},"text":{"type":"string"}},"required":["channel","default","envId","notificationId","templateId","text"],"additionalProperties":false},{"type":"object","properties":{"envId":{"type":"string"},"notificationId":{"type":"string"},"templateId":{"type":"string"},"channel":{"$ref":"#/components/schemas/ChannelsEnum"},"default":{"type":"boolean"},"isDefaultFor":{"type":"object","additionalProperties":{"type":"boolean"}},"title":{"type":"string"},"message":{"type":"string"}},"required":["channel","default","envId","message","notificationId","templateId","title"],"additionalProperties":false},{"type":"object","properties":{"envId":{"type":"string"},"notificationId":{"type":"string"},"templateId":{"type":"string"},"channel":{"$ref":"#/components/schemas/ChannelsEnum"},"default":{"type":"boolean"},"isDefaultFor":{"type":"object","additionalProperties":{"type":"boolean"}},"title":{"type":"string"},"message":{"type":"string"},"icon":{"type":"string"},"url":{"type":"string"}},"required":["channel","default","envId","message","notificationId","templateId","title"],"additionalProperties":false},{"type":"object","properties":{"envId":{"type":"string"},"notificationId":{"type":"string"},"templateId":{"type":"string"},"channel":{"$ref":"#/components/schemas/ChannelsEnum"},"default":{"type":"boolean"},"isDefaultFor":{"type":"object","additionalProperties":{"type":"boolean"}},"text":{"type":"string"},"blocks":{"type":"array","items":{"type":"object","additionalProperties":{}}},"username":{"type":"string"},"icon":{"type":"string"},"thread_ts":{"type":"string"},"reply_broadcast":{"type":"boolean"},"parse":{"type":"string","enum":["full","none"]},"link_names":{"type":"boolean"},"mrkdwn":{"type":"boolean"},"unfurl_links":{"type":"boolean"},"unfurl_media":{"type":"boolean"},"metadata":{"type":"object","additionalProperties":false,"properties":{"entities":{"type":"array","items":{"type":"object","properties":{"entity_type":{"type":"string","description":"Entity type (e.g., 'slack#/entities/task', 'slack#/entities/file')."},"entity_payload":{"type":"object","additionalProperties":{},"description":"Schema for the given entity type."},"external_ref":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"}},"required":["id"],"additionalProperties":false,"description":"Reference used to identify an entity within the developer's system."},"url":{"type":"string","description":"URL used to identify an entity within the developer's system."},"app_unfurl_url":{"type":"string","description":"The exact URL posted in the source message. Required in metadata passed to `chat.unfurl`."}},"required":["entity_type","entity_payload","external_ref","url"],"additionalProperties":false},"description":"An array of work object entities."},"event_type":{"type":"string","description":"A human readable alphanumeric string representing your application's metadata event."},"event_payload":{"type":"object","additionalProperties":{},"description":"A free-form object containing whatever data your application wishes to attach to messages."}},"description":"Slack message metadata with optional work object entities.\nCombines standard Slack message metadata fields with an array of entity objects."}},"required":["channel","default","envId","notificationId","templateId","text"],"additionalProperties":false}],"description":"Union of all channel-specific template types. Used for API responses that can return any template type."},"description":"List of templates for a notification/channel (list endpoint)."},"GetTemplatesResponse":{"anyOf":[{"anyOf":[{"type":"object","properties":{"envId":{"type":"string"},"notificationId":{"type":"string"},"templateId":{"type":"string"},"channel":{"$ref":"#/components/schemas/ChannelsEnum"},"default":{"type":"boolean"},"isDefaultFor":{"type":"object","additionalProperties":{"type":"boolean"}},"html":{"type":"string"},"previewText":{"type":"string"},"internal":{"type":"string"},"subject":{"type":"string"},"senderName":{"type":"string"},"senderEmail":{"type":"string"}},"required":["channel","default","envId","html","internal","notificationId","senderEmail","senderName","subject","templateId"],"additionalProperties":false},{"type":"object","additionalProperties":false,"properties":{"title":{"type":"string"},"redirectURL":{"type":"string"},"imageURL":{"type":"string"},"instant":{"type":"object","properties":{"title":{"type":"string"},"redirectURL":{"type":"string"},"imageURL":{"type":"string"}},"required":["title","redirectURL","imageURL"],"additionalProperties":false},"batch":{"type":"object","properties":{"title":{"type":"string"},"redirectURL":{"type":"string"},"imageURL":{"type":"string"}},"required":["title","redirectURL","imageURL"],"additionalProperties":false},"envId":{"type":"string"},"notificationId":{"type":"string"},"templateId":{"type":"string"},"channel":{"$ref":"#/components/schemas/ChannelsEnum"},"default":{"type":"boolean"},"isDefaultFor":{"type":"object","additionalProperties":{"type":"boolean"}}},"required":["batch","channel","default","envId","imageURL","instant","notificationId","redirectURL","templateId","title"]},{"type":"object","properties":{"envId":{"type":"string"},"notificationId":{"type":"string"},"templateId":{"type":"string"},"channel":{"$ref":"#/components/schemas/ChannelsEnum"},"default":{"type":"boolean"},"isDefaultFor":{"type":"object","additionalProperties":{"type":"boolean"}},"text":{"type":"string"},"mediaUrls":{"type":"array","items":{"type":"string"},"description":"Set when sending MMS (outbound)."}},"required":["channel","default","envId","notificationId","templateId","text"],"additionalProperties":false},{"type":"object","properties":{"envId":{"type":"string"},"notificationId":{"type":"string"},"templateId":{"type":"string"},"channel":{"$ref":"#/components/schemas/ChannelsEnum"},"default":{"type":"boolean"},"isDefaultFor":{"type":"object","additionalProperties":{"type":"boolean"}},"text":{"type":"string"}},"required":["channel","default","envId","notificationId","templateId","text"],"additionalProperties":false},{"type":"object","properties":{"envId":{"type":"string"},"notificationId":{"type":"string"},"templateId":{"type":"string"},"channel":{"$ref":"#/components/schemas/ChannelsEnum"},"default":{"type":"boolean"},"isDefaultFor":{"type":"object","additionalProperties":{"type":"boolean"}},"title":{"type":"string"},"message":{"type":"string"}},"required":["channel","default","envId","message","notificationId","templateId","title"],"additionalProperties":false},{"type":"object","properties":{"envId":{"type":"string"},"notificationId":{"type":"string"},"templateId":{"type":"string"},"channel":{"$ref":"#/components/schemas/ChannelsEnum"},"default":{"type":"boolean"},"isDefaultFor":{"type":"object","additionalProperties":{"type":"boolean"}},"title":{"type":"string"},"message":{"type":"string"},"icon":{"type":"string"},"url":{"type":"string"}},"required":["channel","default","envId","message","notificationId","templateId","title"],"additionalProperties":false},{"type":"object","properties":{"envId":{"type":"string"},"notificationId":{"type":"string"},"templateId":{"type":"string"},"channel":{"$ref":"#/components/schemas/ChannelsEnum"},"default":{"type":"boolean"},"isDefaultFor":{"type":"object","additionalProperties":{"type":"boolean"}},"text":{"type":"string"},"blocks":{"type":"array","items":{"type":"object","additionalProperties":{}}},"username":{"type":"string"},"icon":{"type":"string"},"thread_ts":{"type":"string"},"reply_broadcast":{"type":"boolean"},"parse":{"type":"string","enum":["full","none"]},"link_names":{"type":"boolean"},"mrkdwn":{"type":"boolean"},"unfurl_links":{"type":"boolean"},"unfurl_media":{"type":"boolean"},"metadata":{"type":"object","additionalProperties":false,"properties":{"entities":{"type":"array","items":{"type":"object","properties":{"entity_type":{"type":"string","description":"Entity type (e.g., 'slack#/entities/task', 'slack#/entities/file')."},"entity_payload":{"type":"object","additionalProperties":{},"description":"Schema for the given entity type."},"external_ref":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"}},"required":["id"],"additionalProperties":false,"description":"Reference used to identify an entity within the developer's system."},"url":{"type":"string","description":"URL used to identify an entity within the developer's system."},"app_unfurl_url":{"type":"string","description":"The exact URL posted in the source message. Required in metadata passed to `chat.unfurl`."}},"required":["entity_type","entity_payload","external_ref","url"],"additionalProperties":false},"description":"An array of work object entities."},"event_type":{"type":"string","description":"A human readable alphanumeric string representing your application's metadata event."},"event_payload":{"type":"object","additionalProperties":{},"description":"A free-form object containing whatever data your application wishes to attach to messages."}},"description":"Slack message metadata with optional work object entities.\nCombines standard Slack message metadata fields with an array of entity objects."}},"required":["channel","default","envId","notificationId","templateId","text"],"additionalProperties":false}],"description":"Union of all channel-specific template types. Used for API responses that can return any template type."},{"type":"array","items":{"anyOf":[{"type":"object","properties":{"envId":{"type":"string"},"notificationId":{"type":"string"},"templateId":{"type":"string"},"channel":{"$ref":"#/components/schemas/ChannelsEnum"},"default":{"type":"boolean"},"isDefaultFor":{"type":"object","additionalProperties":{"type":"boolean"}},"html":{"type":"string"},"previewText":{"type":"string"},"internal":{"type":"string"},"subject":{"type":"string"},"senderName":{"type":"string"},"senderEmail":{"type":"string"}},"required":["channel","default","envId","html","internal","notificationId","senderEmail","senderName","subject","templateId"],"additionalProperties":false},{"type":"object","additionalProperties":false,"properties":{"title":{"type":"string"},"redirectURL":{"type":"string"},"imageURL":{"type":"string"},"instant":{"type":"object","properties":{"title":{"type":"string"},"redirectURL":{"type":"string"},"imageURL":{"type":"string"}},"required":["title","redirectURL","imageURL"],"additionalProperties":false},"batch":{"type":"object","properties":{"title":{"type":"string"},"redirectURL":{"type":"string"},"imageURL":{"type":"string"}},"required":["title","redirectURL","imageURL"],"additionalProperties":false},"envId":{"type":"string"},"notificationId":{"type":"string"},"templateId":{"type":"string"},"channel":{"$ref":"#/components/schemas/ChannelsEnum"},"default":{"type":"boolean"},"isDefaultFor":{"type":"object","additionalProperties":{"type":"boolean"}}},"required":["batch","channel","default","envId","imageURL","instant","notificationId","redirectURL","templateId","title"]},{"type":"object","properties":{"envId":{"type":"string"},"notificationId":{"type":"string"},"templateId":{"type":"string"},"channel":{"$ref":"#/components/schemas/ChannelsEnum"},"default":{"type":"boolean"},"isDefaultFor":{"type":"object","additionalProperties":{"type":"boolean"}},"text":{"type":"string"},"mediaUrls":{"type":"array","items":{"type":"string"},"description":"Set when sending MMS (outbound)."}},"required":["channel","default","envId","notificationId","templateId","text"],"additionalProperties":false},{"type":"object","properties":{"envId":{"type":"string"},"notificationId":{"type":"string"},"templateId":{"type":"string"},"channel":{"$ref":"#/components/schemas/ChannelsEnum"},"default":{"type":"boolean"},"isDefaultFor":{"type":"object","additionalProperties":{"type":"boolean"}},"text":{"type":"string"}},"required":["channel","default","envId","notificationId","templateId","text"],"additionalProperties":false},{"type":"object","properties":{"envId":{"type":"string"},"notificationId":{"type":"string"},"templateId":{"type":"string"},"channel":{"$ref":"#/components/schemas/ChannelsEnum"},"default":{"type":"boolean"},"isDefaultFor":{"type":"object","additionalProperties":{"type":"boolean"}},"title":{"type":"string"},"message":{"type":"string"}},"required":["channel","default","envId","message","notificationId","templateId","title"],"additionalProperties":false},{"type":"object","properties":{"envId":{"type":"string"},"notificationId":{"type":"string"},"templateId":{"type":"string"},"channel":{"$ref":"#/components/schemas/ChannelsEnum"},"default":{"type":"boolean"},"isDefaultFor":{"type":"object","additionalProperties":{"type":"boolean"}},"title":{"type":"string"},"message":{"type":"string"},"icon":{"type":"string"},"url":{"type":"string"}},"required":["channel","default","envId","message","notificationId","templateId","title"],"additionalProperties":false},{"type":"object","properties":{"envId":{"type":"string"},"notificationId":{"type":"string"},"templateId":{"type":"string"},"channel":{"$ref":"#/components/schemas/ChannelsEnum"},"default":{"type":"boolean"},"isDefaultFor":{"type":"object","additionalProperties":{"type":"boolean"}},"text":{"type":"string"},"blocks":{"type":"array","items":{"type":"object","additionalProperties":{}}},"username":{"type":"string"},"icon":{"type":"string"},"thread_ts":{"type":"string"},"reply_broadcast":{"type":"boolean"},"parse":{"type":"string","enum":["full","none"]},"link_names":{"type":"boolean"},"mrkdwn":{"type":"boolean"},"unfurl_links":{"type":"boolean"},"unfurl_media":{"type":"boolean"},"metadata":{"type":"object","additionalProperties":false,"properties":{"entities":{"type":"array","items":{"type":"object","properties":{"entity_type":{"type":"string","description":"Entity type (e.g., 'slack#/entities/task', 'slack#/entities/file')."},"entity_payload":{"type":"object","additionalProperties":{},"description":"Schema for the given entity type."},"external_ref":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"}},"required":["id"],"additionalProperties":false,"description":"Reference used to identify an entity within the developer's system."},"url":{"type":"string","description":"URL used to identify an entity within the developer's system."},"app_unfurl_url":{"type":"string","description":"The exact URL posted in the source message. Required in metadata passed to `chat.unfurl`."}},"required":["entity_type","entity_payload","external_ref","url"],"additionalProperties":false},"description":"An array of work object entities."},"event_type":{"type":"string","description":"A human readable alphanumeric string representing your application's metadata event."},"event_payload":{"type":"object","additionalProperties":{},"description":"A free-form object containing whatever data your application wishes to attach to messages."}},"description":"Slack message metadata with optional work object entities.\nCombines standard Slack message metadata fields with an array of entity objects."}},"required":["channel","default","envId","notificationId","templateId","text"],"additionalProperties":false}],"description":"Union of all channel-specific template types. Used for API responses that can return any template type."}}],"description":"Single template or list of templates (get handler: one when templateId provided, list when not)."},"GetUsageHistoryQuery":{"type":"object","properties":{"startDate":{"type":"string","description":"Start date (YYYY-MM-DD) for the range"},"endDate":{"type":"string","description":"End date (YYYY-MM-DD) for the range"},"groupBy":{"type":"string","description":"calendar = UTC calendar months (YYYY-MM). billing = account billing cycles (YYYY-MM-DD period start). Defaults to calendar."}},"required":["startDate","endDate"],"additionalProperties":false,"description":"Query parameters for GET /account/usage/history"},"GetUsageHistoryResponse":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"yearMonth":{"type":"string","description":"YYYY-MM for calendar months, or YYYY-MM-DD billing-period start."},"counts":{"type":"object","properties":{"EMAIL":{"type":"number"},"INAPP_WEB":{"type":"number"},"SMS":{"type":"number"},"CALL":{"type":"number"},"VOICE":{"type":"number"},"PUSH":{"type":"number"},"WEB_PUSH":{"type":"number"},"SLACK":{"type":"number"}},"required":["EMAIL","INAPP_WEB","SMS","CALL","VOICE","PUSH","WEB_PUSH","SLACK"],"additionalProperties":false}},"required":["yearMonth","counts"],"additionalProperties":false,"description":"Single usage item in historical response"},"description":"Array of usage items, one per calendar month or billing cycle in the range"}},"required":["items"],"additionalProperties":false,"description":"Response for GET /account/usage/history"},"GetUsageResponse":{"type":"object","properties":{"costs":{"type":"object","properties":{"NUMBER":{"type":"number"}},"additionalProperties":{"type":"number"},"description":"Total costs for the billing cycle (all channel costs + number rent)"},"counts":{"type":"object","properties":{"EMAIL":{"type":"number"},"INAPP_WEB":{"type":"number"},"SMS":{"type":"number"},"CALL":{"type":"number"},"VOICE":{"type":"number"},"PUSH":{"type":"number"},"WEB_PUSH":{"type":"number"},"SLACK":{"type":"number"}},"required":["EMAIL","INAPP_WEB","SMS","CALL","VOICE","PUSH","WEB_PUSH","SLACK"],"additionalProperties":false,"description":"Per-channel usage breakdown"},"billingCycleStart":{"type":"string","description":"Billing cycle start date (ISO string)"},"billingCycleEnd":{"type":"string","description":"Billing cycle end date (ISO string)"}},"required":["billingCycleStart","billingCycleEnd"],"additionalProperties":false,"description":"Response for GET /account/usage"},"GetUsersResponse":{"type":"object","properties":{"users":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique user identifier. Required."},"email":{"type":"string","description":"User's email address for email notifications."},"number":{"type":"string","description":"User's phone number for SMS/call notifications."},"pushTokens":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["FCM","APN"]},"token":{"type":"string"},"device":{"type":"object","properties":{"app_id":{"type":"string"},"ad_id":{"type":"string"},"device_id":{"type":"string"},"platform":{"type":"string"},"manufacturer":{"type":"string"},"model":{"type":"string"}},"required":["device_id"],"additionalProperties":false},"environment":{"type":"string","description":"used by APN to differentiate between sandbox and production builds (sandbox/undefined or production)","default":"undefined"}},"required":["type","token","device"],"additionalProperties":false},"description":"Mobile push tokens (FCM, APN) for push notifications."},"webPushTokens":{"type":"array","items":{"type":"object","properties":{"sub":{"type":"object","properties":{"endpoint":{"type":"string"},"keys":{"type":"object","properties":{"p256dh":{"type":"string"},"auth":{"type":"string"}},"required":["p256dh","auth"],"additionalProperties":false}},"required":["endpoint","keys"],"additionalProperties":false,"description":"Configuration for a Push Subscription. This can be obtained on the frontend by calling serviceWorkerRegistration.pushManager.subscribe(). The expected format is the same output as JSON.stringify'ing a PushSubscription in the browser."}},"required":["sub"],"additionalProperties":false},"description":"Web push subscription config from the browser."},"timezone":{"type":"string","description":"User's timezone (e.g. \"America/New_York\") for scheduling."},"slackChannel":{"type":"string","description":"The destination channel of slack notifications sent to this user. Can be either of the following:\n- Channel name, e.g. \"test\"\n- Channel name with # prefix, e.g. \"#test\"\n- Channel ID, e.g. \"C1234567890\"\n- User ID for DM, e.g. \"U1234567890\"\n- Username with @ prefix, e.g. \"@test\""},"slackToken":{"type":"object","additionalProperties":false,"properties":{"access_token":{"type":"string"},"app_id":{"type":"string"},"authed_user":{"type":"object","properties":{"access_token":{"type":"string"},"expires_in":{"type":"number"},"id":{"type":"string"},"refresh_token":{"type":"string"},"scope":{"type":"string"},"token_type":{"type":"string"}},"additionalProperties":false},"bot_user_id":{"type":"string"},"enterprise":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"additionalProperties":false},"error":{"type":"string"},"expires_in":{"type":"number"},"incoming_webhook":{"type":"object","properties":{"channel":{"type":"string"},"channel_id":{"type":"string"},"configuration_url":{"type":"string"},"url":{"type":"string"}},"additionalProperties":false},"is_enterprise_install":{"type":"boolean"},"needed":{"type":"string"},"ok":{"type":"boolean"},"provided":{"type":"string"},"refresh_token":{"type":"string"},"scope":{"type":"string"},"team":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"additionalProperties":false},"token_type":{"type":"string"},"warning":{"type":"string"},"response_metadata":{"type":"object","properties":{"warnings":{"type":"array","items":{"type":"string"}},"next_cursor":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"acceptedScopes":{"type":"array","items":{"type":"string"}},"retryAfter":{"type":"number"},"messages":{"type":"array","items":{"type":"string"}}},"additionalProperties":false}},"required":["ok"]},"properties":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},"description":"Custom key-value properties synced by the developer, used for audience segmentation (e.g. broadcast filters on user.properties.plan). Incremental identify calls shallow-merge keys (unset keys are preserved). Limits: max 25 keys, key length <= 64, string values <= 256 chars, serialized size <= 1KB."},"lastSeenTime":{"type":"string","description":"Last activity timestamp. Updated automatically. Read-only."},"updatedAt":{"type":"string","description":"Last update timestamp. Read-only."},"createdAt":{"type":"string","description":"Creation timestamp. Read-only."},"emailSuppressionStatus":{"type":"object","properties":{"reason":{"type":"string","enum":["Bounce","Complaint"]},"details":{"type":"object"}},"required":["reason","details"],"additionalProperties":false,"description":"Bounce or complaint status if email was suppressed. Read-only."}},"required":["id"],"additionalProperties":false}},"lastEvaluatedKey":{"type":"string"},"hasMore":{"type":"boolean"}},"required":["users","hasMore"],"additionalProperties":false},"GetVoiceCallResponse":{"type":"object","properties":{"call":{"type":"object","properties":{"trackingId":{"type":"string"},"status":{"type":"string","enum":["active","ended","failed"]},"configName":{"type":"string"},"direction":{"type":"string","enum":["inbound","outbound"]},"source":{"type":"string","enum":["pstn","web"]},"from":{"type":"string"},"to":{"type":"string"},"startedAt":{"type":"string"},"answeredAt":{"type":"string","description":"Set when the callee answers. Absent while the phone is still ringing."},"durationSeconds":{"type":"number"},"outcome":{"type":"string","enum":["completed","transferred","voicemail","no_answer","failed"]},"endReason":{"type":"string","enum":["user_hangup","agent_end_call","silence_timeout","max_duration","free_tier_limit","transferred","voicemail","provider_error","connection_lost","no_answer","session_expired","server_shutdown"],"description":"Machine-readable reason the call ended — persisted on every call record."},"endDetail":{"type":"string","description":"Short human-readable detail, such as why the call failed."},"websocket":{"type":"string","description":"Live call socket. Present while the call is active."},"token":{"type":"string","description":"Token for the live call socket. Present while the call is active."},"timeline":{"type":"array","items":{"type":"object","properties":{"offsetMs":{"type":"number"},"type":{"type":"string"},"text":{"type":"string"},"detail":{"type":"string"},"latency":{"type":"object","properties":{"sttMs":{"type":"number"},"llmMs":{"type":"number"},"ttsMs":{"type":"number"},"totalMs":{"type":"number"}},"required":["totalMs"],"additionalProperties":false},"toolName":{"type":"string"},"toolArgs":{"type":"object","additionalProperties":{}},"toolResult":{"type":"string"}},"required":["offsetMs","type"],"additionalProperties":false,"description":"Chronological call timeline entry — transcript turns and operational events share one stream, sorted by offsetMs.\n\nSpeech: type is 'user' | 'assistant' | 'tool' with text. Ops: type is an event name (session_created, barge_in_cancel, …) with optional detail."},"description":"Full chronological timeline (transcript + ops events)."},"recordingUrl":{"type":"string"},"setup":{"type":"object","properties":{"mode":{"type":"string"},"script":{"type":"array","items":{"type":"object","properties":{"verb":{"type":"string","enum":["Say"]},"text":{"type":"string"}},"required":["verb","text"],"additionalProperties":false,"description":"One spoken line."}},"record":{"type":"boolean","description":"Call recording. Omitted means off."},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."},"stream":{"type":"object","properties":{"audio":{"type":"boolean"},"transcript":{"type":"string","enum":["single","multichannel"]}},"additionalProperties":false},"voicemailAction":{"type":"string","enum":["hangup","message","continue"]},"voicemailMessage":{"type":"string"}},"additionalProperties":false,"description":"What was requested when the call was placed. Stored on the call row."},"variables":{"type":"object","additionalProperties":{"type":"string"}},"cost":{"type":"object","properties":{"totalUsd":{"type":"number"},"lines":{"type":"array","items":{"type":"object","properties":{"role":{"type":"string"},"label":{"type":"string"},"provider":{"type":"string","description":"AI model vendor when applicable; omitted for phone-line charges."},"model":{"type":"string"},"amountUsd":{"type":"number"},"detail":{"type":"string"}},"required":["role","label","amountUsd"],"additionalProperties":false,"description":"One line in the call cost breakdown."}}},"required":["totalUsd","lines"],"additionalProperties":false,"description":"Customer-facing cost for this call."}},"required":["configName","direction","durationSeconds","from","source","startedAt","status","timeline","to","trackingId"],"additionalProperties":false}},"required":["call"],"additionalProperties":false},"InAppNotificationPatchRequest":{"type":"object","properties":{"trackingIds":{"type":"array","items":{"type":"string"}},"opened":{"type":"string"},"clicked":{"type":"string"},"archived":{"type":"string"},"actioned1":{"type":"string"},"actioned2":{"type":"string"},"reply":{"type":"object","properties":{"date":{"type":"string"},"message":{"type":"string"}},"required":["date","message"],"additionalProperties":false},"replies":{"type":"array","items":{"type":"object","properties":{"date":{"type":"string"},"message":{"type":"string"}},"required":["date","message"],"additionalProperties":false}}},"required":["trackingIds"],"additionalProperties":false},"InAppNotificationUnreadClearRequest":{"type":"object","properties":{"notificationId":{"type":"string"},"trackingId":{"type":"string"}},"additionalProperties":false},"InappUnreadCountResponse":{"type":"object","properties":{"count":{"type":"number"}},"required":["count"],"additionalProperties":false},"InboundConfig":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["script"]},"steps":{"type":"array","items":{"type":"object","properties":{"verb":{"type":"string","enum":["Say"]},"text":{"type":"string"}},"required":["verb","text"],"additionalProperties":false,"description":"One spoken line."}},"stream":{"type":"object","properties":{"audio":{"type":"boolean","description":"Live call audio. Omitted means off."},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"What the call socket carries. Omitted means the socket is open and carries neither."},"privacy":{"type":"object","properties":{"record":{"type":"boolean"},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"Omitted record and transcript mean both are off."}},"required":["type","steps"],"additionalProperties":false,"title":"Script"},{"type":"object","properties":{"type":{"type":"string","enum":["agent"]},"greeting":{"type":"string"},"agent":{"type":"object","properties":{"instructions":{"type":"string"},"model":{"description":"Configuration for which model processes the call, including its voice settings. `model` chooses the realtime model. `voiceId` must be a voice offered by that model.","oneOf":[{"type":"object","additionalProperties":false,"properties":{"effort":{"type":"string","enum":["minimal","low","medium","high","xhigh"]},"model":{"type":"string","enum":["openai:gpt-realtime-2.1"],"description":"Which realtime model processes the call."},"voiceId":{"type":"string","enum":["alloy","ash","ballad","coral","echo","sage","shimmer","verse","marin","cedar"]},"temperature":{"type":"number","description":"How varied replies are. 0 is focused, 1 is more creative. Default: 0.8."},"maxTokens":{"type":"number","description":"Maximum length of one reply, in tokens. Default: 4096."}},"required":["model"],"title":"OpenaiGptRealtime21"},{"type":"object","additionalProperties":false,"properties":{"effort":{"type":"string","enum":["minimal","low","medium","high","xhigh"]},"model":{"type":"string","enum":["openai:gpt-realtime-2.1-mini"],"description":"Which realtime model processes the call."},"voiceId":{"type":"string","enum":["alloy","ash","ballad","coral","echo","sage","shimmer","verse","marin","cedar"]},"temperature":{"type":"number","description":"How varied replies are. 0 is focused, 1 is more creative. Default: 0.8."},"maxTokens":{"type":"number","description":"Maximum length of one reply, in tokens. Default: 4096."}},"required":["model"],"title":"OpenaiGptRealtime21Mini"},{"type":"object","additionalProperties":false,"properties":{"effort":{"type":"string","enum":["none","low","medium","high","xhigh","max"]},"model":{"type":"string","enum":["openai:gpt-live-1"],"description":"Which realtime model processes the call."},"voiceId":{"type":"string","enum":["alloy","ash","ballad","coral","echo","sage","shimmer","verse","marin","cedar","quartz","ripple","vesper","willow","stone","gleam","meridian","bossa","tempo","beacon","delta","cinder"]},"temperature":{"type":"number","description":"How varied replies are. 0 is focused, 1 is more creative. Default: 0.8."},"maxTokens":{"type":"number","description":"Maximum length of one reply, in tokens. Default: 4096."}},"required":["model"],"title":"OpenaiGptLive1"},{"type":"object","additionalProperties":false,"properties":{"effort":{"type":"string","enum":["minimal","low","medium","high"]},"model":{"type":"string","enum":["google:gemini-3.1-flash-live-preview"],"description":"Which realtime model processes the call."},"voiceId":{"type":"string","enum":["Puck","Charon","Kore","Fenrir","Aoede","Leda","Orus","Zephyr"]},"temperature":{"type":"number","description":"How varied replies are. 0 is focused, 1 is more creative. Default: 0.8."},"maxTokens":{"type":"number","description":"Maximum length of one reply, in tokens. Default: 4096."}},"required":["model"],"title":"GoogleGemini31FlashLivePreview"},{"type":"object","additionalProperties":false,"properties":{"model":{"type":"string","enum":["xai:grok-voice-latest"],"description":"Which realtime model processes the call."},"voiceId":{"type":"string","enum":["eve","ara","rex","sal","leo"]},"temperature":{"type":"number","description":"How varied replies are. 0 is focused, 1 is more creative. Default: 0.8."},"maxTokens":{"type":"number","description":"Maximum length of one reply, in tokens. Default: 4096."}},"required":["model"],"title":"XaiGrokVoiceLatest"},{"type":"object","additionalProperties":false,"properties":{"language":{"type":"string","enum":["en","ar","bg","zh","hr","cs","da","nl","fil","fi","fr","de","el","he","hi","hu","id","it","ja","ko","ms","no","pl","pt","ro","ru","sk","es","sv","ta","tr","uk","vi"]},"model":{"type":"string","enum":["elevenlabs:eleven_realtime_v1_mini"],"description":"Which realtime model processes the call."},"voiceId":{"type":"string","enum":["brian","rachel","adam","antoni","elli","josh","bella","charlotte","dTmTLshIypwp08eftJH6","M8xXPW1xIZVqZLxYby5T","KbgdAMqTSb5aaLUaXEm2"]},"temperature":{"type":"number","description":"How varied replies are. 0 is focused, 1 is more creative. Default: 0.8."},"maxTokens":{"type":"number","description":"Maximum length of one reply, in tokens. Default: 4096."}},"required":["model"],"title":"ElevenlabsElevenRealtimeV1Mini"},{"type":"object","additionalProperties":false,"properties":{"language":{"type":"string","enum":["en","ar","bg","zh","hr","cs","da","nl","fil","fi","fr","de","el","he","hi","hu","id","it","ja","ko","ms","no","pl","pt","ro","ru","sk","es","sv","ta","tr","uk","vi"]},"model":{"type":"string","enum":["elevenlabs:eleven_realtime_v1_max"],"description":"Which realtime model processes the call."},"voiceId":{"type":"string","enum":["brian","rachel","adam","antoni","elli","josh","bella","charlotte","dTmTLshIypwp08eftJH6","M8xXPW1xIZVqZLxYby5T","KbgdAMqTSb5aaLUaXEm2"]},"temperature":{"type":"number","description":"How varied replies are. 0 is focused, 1 is more creative. Default: 0.8."},"maxTokens":{"type":"number","description":"Maximum length of one reply, in tokens. Default: 4096."}},"required":["model"],"title":"ElevenlabsElevenRealtimeV1Max"}]},"tools":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["transfer"],"description":"Transfer the live call to one of destinations."},"destinations":{"type":"array","items":{"type":"object","properties":{"phoneNumber":{"type":"string","description":"E.164 number to transfer the caller to."},"condition":{"type":"string","description":"When the model should choose this number. Required when more than one destination is set."},"holdSay":{"type":"string","description":"Spoken once to the caller while they wait. If holdAudio is also set, this sentence plays first and then the audio."},"holdAudio":{"type":"string","description":"`builtin:soft-piano`, `builtin:calm`, `builtin:bright`, or an HTTPS MP3 or WAV. Loops until the call connects. Omit it and the caller hears ringing."},"receiverInstruction":{"type":"string","description":"Shown to the agent with this number. Tells it whether and how to write the sentence spoken to the person who answers. Never spoken. Omit it and the agent is asked to say who is calling and why."}},"required":["phoneNumber","condition"],"additionalProperties":false},"description":"Numbers the agent can transfer to. Set a condition on each when there is more than one."}},"required":["type","destinations"],"additionalProperties":false,"description":"Transfer the caller to a phone number.","title":"Transfer"},{"type":"object","properties":{"type":{"type":"string","enum":["dtmf"],"description":"Send DTMF keypad tones during the call."}},"required":["type"],"additionalProperties":false,"description":"Let the agent send keypad tones.","title":"Dtmf"},{"type":"object","properties":{"type":{"type":"string","enum":["disconnect"],"description":"End the call after saying goodbye."}},"required":["type"],"additionalProperties":false,"description":"Let the agent hang up.","title":"Disconnect"},{"type":"object","properties":{"type":{"type":"string","enum":["weather"],"description":"Current weather for a city the caller names."}},"required":["type"],"additionalProperties":false,"description":"Look up the current weather for a city.","title":"Weather"},{"type":"object","properties":{"type":{"type":"string","enum":["custom"],"description":"Invoke an HTTPS webhook when the model calls this tool."},"name":{"type":"string","description":"Function name the model calls."},"description":{"type":"string","description":"When the model should use this tool."},"parameters":{"type":"object","additionalProperties":{},"description":"JSON Schema for the arguments the model passes."},"url":{"type":"string","description":"HTTPS webhook invoked when the model calls this tool during a call."},"beforeSpeech":{"type":"string","description":"Spoken before the webhook when this turn has not spoken yet."},"slowSpeechAfterSeconds":{"type":"number","description":"Wait this many seconds, then speak slowSpeech if the webhook is still running."},"slowSpeech":{"type":"string","description":"Spoken once when the webhook is still running after slowSpeechAfterSeconds."}},"required":["type","name","description","parameters"],"additionalProperties":false,"description":"Call an HTTPS webhook from the conversation.","title":"Custom"},{"type":"object","properties":{"type":{"type":"string","enum":["mcp"],"description":"Connect a remote MCP server and use its tools."},"url":{"type":"string","description":"MCP server URL."},"label":{"type":"string","description":"Optional name shown in the dashboard."}},"required":["type","url"],"additionalProperties":false,"description":"Load tools from a remote MCP server.","title":"Mcp"},{"type":"object","properties":{"type":{"type":"string","enum":["knowledge"],"description":"Search uploaded documents during the call."},"documents":{"type":"array","items":{"type":"object","properties":{"docId":{"type":"string","description":"Opaque identifier for an uploaded knowledge document."},"name":{"type":"string","description":"File name shown to the agent and in the dashboard."},"sizeBytes":{"type":"number","description":"File size in bytes."}},"required":["docId","name","sizeBytes"],"additionalProperties":false},"description":"Files the agent can search."}},"required":["type","documents"],"additionalProperties":false,"description":"Answer from uploaded documents.","title":"Knowledge"}]}},"variables":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"Placeholder name used inside {{name}} tags."},"description":{"type":"string","description":"What the value means. Passed to the model with the filled value."},"defaultValue":{"type":"string","description":"Used when the call does not pass this variable."}},"required":["name"],"additionalProperties":false}},"conversation":{"type":"object","properties":{"turnDetection":{"type":"string","enum":["semantic","vad"],"description":"How the agent decides the caller has finished speaking. Default: semantic."},"minEndOfTurnSilenceMs":{"type":"number","description":"Silence before the agent treats the turn as finished, in milliseconds. Default: 500."},"allowInterruptions":{"type":"boolean","description":"Whether the caller can interrupt the agent. Default: true."},"minInterruptionDurationMs":{"type":"number","description":"How long the caller must speak to count as an interruption, in milliseconds. Default: 300."},"silenceTimeoutSeconds":{"type":"number","description":"Seconds of silence before the agent hangs up. 0 never hangs up. Default: 30."},"maxCallLengthSeconds":{"type":"number","description":"Maximum call length in seconds. Default: 600."}},"additionalProperties":false,"description":"Turn-taking and call limits. Each omitted field uses its default."}},"required":["instructions","model"],"additionalProperties":false,"description":"Speech-to-speech block shared by inbound and outbound agent calls."},"stream":{"type":"object","properties":{"audio":{"type":"boolean","description":"Live call audio. Omitted means off."},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"What the call socket carries. Omitted means the socket is open and carries neither."},"privacy":{"type":"object","properties":{"record":{"type":"boolean"},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"Omitted record and transcript mean both are off."}},"required":["type","agent"],"additionalProperties":false,"title":"Agent"},{"type":"object","properties":{"type":{"type":"string","enum":["transfer"]},"to":{"type":"string"},"holdSay":{"type":"string","description":"Spoken once to the caller while they wait. If holdAudio is also set, this sentence plays first and then the audio."},"holdAudio":{"type":"string","description":"`builtin:soft-piano`, `builtin:calm`, `builtin:bright`, or an HTTPS MP3 or WAV. Loops until the call connects. Omit it and the caller hears ringing."},"receiverSay":{"type":"string","description":"Spoken to the person who answers, before the caller is connected."},"stream":{"type":"object","properties":{"audio":{"type":"boolean","description":"Live call audio. Omitted means off."},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"What the call socket carries. Omitted means the socket is open and carries neither."},"privacy":{"type":"object","properties":{"record":{"type":"boolean"},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"Omitted record and transcript mean both are off."}},"required":["type","to"],"additionalProperties":false,"title":"Transfer"},{"type":"object","properties":{"type":{"type":"string","enum":["elevenlabs"]},"stream":{"type":"object","properties":{"audio":{"type":"boolean","description":"Live call audio. Omitted means off."},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"What the call socket carries. Omitted means the socket is open and carries neither."},"privacy":{"type":"object","properties":{"record":{"type":"boolean"},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"Omitted record and transcript mean both are off."}},"required":["type"],"additionalProperties":false,"description":"Answer and SIP-transfer the caller to ElevenLabs. The destination is the called number.","title":"Elevenlabs"},{"type":"object","properties":{"type":{"type":"string","enum":["disabled"]}},"required":["type"],"additionalProperties":false,"title":"Disabled"},{"type":"object","properties":{"type":{"type":"string","enum":["stream"]},"stream":{"type":"object","properties":{"audio":{"type":"boolean","description":"Live call audio. Omitted means off."},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"What the call socket carries. Omitted means the socket is open and carries neither."},"privacy":{"type":"object","properties":{"record":{"type":"boolean"},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"Omitted record and transcript mean both are off."}},"required":["type"],"additionalProperties":false,"description":"The customer's websocket is the application side. No script and no agent.","title":"Stream"}]},"InboundRequestBody":{"anyOf":[{"type":"object","additionalProperties":{}},{"type":"string"}]},"InboundResponseBody":{"type":"object","properties":{"number":{"type":"string","enum":["unknown","stale","recognized"]},"results":{"type":"array","items":{"type":"object","properties":{"webhook":{"type":"string","enum":["delivered","not_set","not_enabled","failed","dropped"]},"autoReply":{"type":"string","enum":["sent","skipped_opt_out","skipped_already_replied","skipped_no_config","skipped_dropped","failed"]}},"required":["webhook","autoReply"],"additionalProperties":false}}},"required":["number","results"],"additionalProperties":false},"IngishtsPostRequest":{"type":"object","properties":{"StartTime":{"type":"string"},"EndTime":{"type":"string"},"MetricDataQueries":{"type":"array","items":{"type":"object","properties":{"Id":{"type":"string","description":"<p>A short name used to tie this object to the results in the response. This name must be             unique within a single call to <code>GetMetricData</code>. If you are performing math             expressions on this set of data, this name represents that data and can serve as a             variable in the mathematical expression. The valid characters are letters, numbers, and             underscore. The first character must be a lowercase letter.</p>"},"MetricStat":{"type":"object","properties":{"Metric":{"type":"object","properties":{"Namespace":{"type":"string","description":"<p>The namespace of the metric.</p>"},"MetricName":{"type":"string","description":"<p>The name of the metric. This is a required field.</p>"},"Dimensions":{"type":"array","items":{"type":"object","properties":{"Name":{"type":"string","description":"<p>The name of the dimension. Dimension names must contain only ASCII characters, must             include at least one non-whitespace character, and cannot start with a colon             (<code>:</code>). ASCII control characters are not supported as part of dimension             names.</p>"},"Value":{"type":"string","description":"<p>The value of the dimension. Dimension values must contain only ASCII characters and             must include at least one non-whitespace character. ASCII control characters are not             supported as part of dimension values.</p>"}},"additionalProperties":false,"description":"<p>A dimension is a name/value pair that is part of the identity of a metric. Because             dimensions are part of the unique identifier for a metric, whenever you add a unique             name/value pair to one of your metrics, you are creating a new variation of that metric.             For example, many Amazon EC2 metrics publish <code>InstanceId</code> as a             dimension name, and the actual instance ID as the value for that dimension.</p>          <p>You can assign up to 30 dimensions to a metric.</p>"},"description":"<p>The dimensions for the metric.</p>"}},"additionalProperties":false,"description":"<p>Represents a specific metric.</p>"},"Period":{"type":"number","description":"<p>The granularity, in seconds, of the returned data points. For metrics with regular             resolution, a period can be as short as one minute (60 seconds) and must be a multiple             of 60. For high-resolution metrics that are collected at intervals of less than one             minute, the period can be 1, 5, 10, 20, 30, 60, or any multiple of 60. High-resolution             metrics are those metrics stored by a <code>PutMetricData</code> call that includes a             <code>StorageResolution</code> of 1 second.</p>          <p>If the <code>StartTime</code> parameter specifies a time stamp that is greater than             3 hours ago, you must specify the period as follows or no data points in that time range             is returned:</p>          <ul>             <li>                <p>Start time between 3 hours and 15 days ago - Use a multiple of 60 seconds                     (1 minute).</p>             </li>             <li>                <p>Start time between 15 and 63 days ago - Use a multiple of 300 seconds (5                     minutes).</p>             </li>             <li>                <p>Start time greater than 63 days ago - Use a multiple of 3600 seconds (1                     hour).</p>             </li>          </ul>"},"Stat":{"type":"string","description":"<p>The statistic to return. It can include any CloudWatch statistic or extended             statistic.</p>"},"Unit":{"type":"string","enum":["Bits","Bits/Second","Bytes","Bytes/Second","Count","Count/Second","Gigabits","Gigabits/Second","Gigabytes","Gigabytes/Second","Kilobits","Kilobits/Second","Kilobytes","Kilobytes/Second","Megabits","Megabits/Second","Megabytes","Megabytes/Second","Microseconds","Milliseconds","None","Percent","Seconds","Terabits","Terabits/Second","Terabytes","Terabytes/Second"]}},"additionalProperties":false,"description":"<p>This structure defines the metric to be returned, along with the statistics, period,             and units.</p>"},"Expression":{"type":"string","description":"<p>This field can contain either a Metrics Insights query, or a metric math expression to             be performed on the returned data. For more information about Metrics Insights queries,             see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch-metrics-insights-querylanguage\">Metrics Insights query components and syntax</a> in the <i>Amazon                     CloudWatch User Guide</i>.</p>          <p>A math expression can use the <code>Id</code> of the other metrics or queries to refer             to those metrics, and can also use the <code>Id</code> of other expressions to use the             result of those expressions. For more information about metric math expressions, see             <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/using-metric-math.html#metric-math-syntax\">Metric Math Syntax and Functions</a> in the <i>Amazon CloudWatch User                     Guide</i>.</p>          <p>Within each MetricDataQuery object, you must specify either <code>Expression</code> or             <code>MetricStat</code> but not both.</p>"},"Label":{"type":"string","description":"<p>A human-readable label for this metric or expression. This is especially useful if             this is an expression, so that you know what the value represents. If the metric or             expression is shown in a CloudWatch dashboard widget, the label is shown. If Label is             omitted, CloudWatch generates a default.</p>          <p>You can put dynamic expressions into a label, so that it is more descriptive. For more             information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/graph-dynamic-labels.html\">Using Dynamic                 Labels</a>.</p>"},"ReturnData":{"type":"boolean","description":"<p>When used in <code>GetMetricData</code>, this option indicates whether to return the             timestamps and raw data values of this metric. If you are performing this call just to             do math expressions and do not also need the raw data returned, you can specify             <code>false</code>. If you omit this, the default of <code>true</code> is             used.</p>          <p>When used in <code>PutMetricAlarm</code>, specify <code>true</code> for the one             expression result to use as the alarm. For all other metrics and expressions in the same             <code>PutMetricAlarm</code> operation, specify <code>ReturnData</code> as             False.</p>"},"Period":{"type":"number","description":"<p>The granularity, in seconds, of the returned data points. For metrics with regular             resolution, a period can be as short as one minute (60 seconds) and must be a multiple             of 60. For high-resolution metrics that are collected at intervals of less than one             minute, the period can be 1, 5, 10, 20, 30, 60, or any multiple of 60. High-resolution             metrics are those metrics stored by a <code>PutMetricData</code> operation that includes             a <code>StorageResolution of 1 second</code>.</p>"},"AccountId":{"type":"string","description":"<p>The ID of the account where the metrics are located.</p>          <p>If you are performing a <code>GetMetricData</code> operation in a monitoring account,             use this to specify which account to retrieve this metric from.</p>          <p>If you are performing a <code>PutMetricAlarm</code> operation, use this to specify             which account contains the metric that the alarm is watching.</p>"}},"additionalProperties":false,"description":"<p>This structure is used in both <code>GetMetricData</code> and             <code>PutMetricAlarm</code>. The supported use of this structure is different for             those two operations.</p>          <p>When used in <code>GetMetricData</code>, it indicates the metric data to return, and             whether this call is just retrieving a batch set of data for one metric, or is             performing a Metrics Insights query or a math expression. A single             <code>GetMetricData</code> call can include up to 500 <code>MetricDataQuery</code>             structures.</p>          <p>When used in <code>PutMetricAlarm</code>, it enables you to create an alarm based on a             metric math expression. Each <code>MetricDataQuery</code> in the array specifies either             a metric to retrieve, or a math expression to be performed on retrieved metrics. A             single <code>PutMetricAlarm</code> call can include up to 20             <code>MetricDataQuery</code> structures in the array. The 20 structures can include             as many as 10 structures that contain a <code>MetricStat</code> parameter to retrieve a             metric, and as many as 10 structures that contain the <code>Expression</code> parameter             to perform a math expression. Of those <code>Expression</code> structures, one must have             <code>true</code> as the value for <code>ReturnData</code>. The result of this             expression is the value the alarm watches.</p>          <p>Any expression used in a <code>PutMetricAlarm</code> operation must return a single             time series. For more information, see <a href=\"https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/using-metric-math.html#metric-math-syntax\">Metric Math Syntax and Functions</a> in the <i>Amazon CloudWatch User                     Guide</i>.</p>          <p>Some of the parameters of this structure also have different uses whether you are             using this structure in a <code>GetMetricData</code> operation or a             <code>PutMetricAlarm</code> operation. These differences are explained in the             following parameter list.</p>"}},"NextToken":{"type":"string"},"ScanBy":{"type":"string","enum":["TimestampDescending","TimestampAscending"]},"MaxDatapoints":{"type":"number"},"LabelOptions":{"type":"object","properties":{"Timezone":{"type":"string"}},"additionalProperties":false}},"required":["StartTime","EndTime","MetricDataQueries"],"additionalProperties":false},"IntercomWebhook":{"type":"object","properties":{"type":{"type":"string","enum":["notification_event"]},"topic":{"type":"string"},"id":{"type":"string"},"app_id":{"type":"string"},"data":{"type":"object","properties":{"item":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["conversation"]},"id":{"type":"string"},"created_at":{"type":"number"},"updated_at":{"type":"number"},"title":{"type":"string"},"admin_assignee_id":{"type":"number","nullable":true},"team_assignee_id":{"type":"string","nullable":true},"source":{"type":"object","properties":{"type":{"type":"string"},"id":{"type":"string"},"delivered_as":{"type":"string"},"subject":{"type":"string"},"body":{"type":"string"},"author":{"type":"object","properties":{"type":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"}},"required":["type","id"],"additionalProperties":false}},"required":["type","id","delivered_as","author"],"additionalProperties":false},"contacts":{"type":"object","properties":{"type":{"type":"string","enum":["contact.list"]},"contacts":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"id":{"type":"string"},"external_id":{"type":"string"}},"required":["type","id"],"additionalProperties":false}}},"required":["type","contacts"],"additionalProperties":false},"state":{"type":"string","enum":["open","closed","snoozed"]},"open":{"type":"boolean"},"read":{"type":"boolean"},"priority":{"type":"string","enum":["priority","not_priority"]}},"required":["type","id","created_at","updated_at","source","contacts","state","open","read","priority"],"additionalProperties":false},{"type":"object","additionalProperties":{}}]}},"required":["item"],"additionalProperties":false}},"required":["type","topic","id","app_id","data"],"additionalProperties":false,"description":"Support conversation webhook payload."},"InternalTransferBody":{"type":"object","properties":{"accountId":{"type":"string"},"trackingId":{"type":"string"},"to":{"type":"string"},"holdSay":{"type":"string"},"holdAudio":{"type":"string"},"receiverSay":{"type":"string"},"agentMeters":{"type":"array","items":{"type":"object","properties":{"providerKey":{"type":"string"},"role":{"type":"string"},"provider":{"type":"string"},"model":{"type":"string"},"unit":{"type":"string","enum":["tokens","minute","characters","seconds"]},"quantity":{"type":"number"},"input":{"type":"number"},"output":{"type":"number"},"total":{"type":"number"}},"required":["providerKey","role","provider","model","unit"],"additionalProperties":false}}},"required":["accountId","trackingId","to"],"additionalProperties":false},"InvitePostResponse":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"}},"additionalProperties":false},"ListAccountsResponse":{"type":"object","properties":{"accounts":{"type":"array","items":{"type":"object","properties":{"accountId":{"type":"string"},"name":{"type":"string"},"accountType":{"type":"string","enum":["free","paid"]},"createdAt":{"type":"string"},"status":{"type":"string","enum":["verified","unverified","blocked"]},"costCap":{"type":"number"}},"required":["accountId","accountType","createdAt","status","costCap"],"additionalProperties":false,"description":"Summary of an account the user can access (GET /accounts)."}}},"required":["accounts"],"additionalProperties":false,"description":"Response for GET /accounts"},"ListBroadcastRecipientsResponse":{"type":"object","properties":{"recipients":{"type":"array","items":{"type":"object","properties":{"trackingId":{"type":"string"},"userId":{"type":"string"},"email":{"type":"string"},"sentAt":{"type":"string"},"deliveredAt":{"type":"string"},"openedAt":{"type":"string"},"clickedAt":{"type":"string"},"bouncedAt":{"type":"string"},"bounceType":{"type":"string"},"complainedAt":{"type":"string"},"unsubscribedAt":{"type":"string"},"skippedAt":{"type":"string"},"skipReason":{"type":"string"},"failedAt":{"type":"string"},"failReason":{"type":"string"}},"required":["trackingId","userId","email"],"additionalProperties":false}},"nextToken":{"type":"string"}},"required":["recipients"],"additionalProperties":false},"ListBroadcastsResponse":{"type":"object","properties":{"broadcasts":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"audience":{"type":"object","properties":{"filter":{"type":"object","additionalProperties":{}},"emailCount":{"type":"number","description":"Number of addresses when the audience is a raw email list."}},"additionalProperties":false,"description":"Audience on a broadcast list row. Exactly one of `filter` (the live Mongo-style query) or `emailCount` (size of a raw email list). Addresses are omitted here; get, create, and update return `audience.emails`."},"broadcastId":{"type":"string","description":"UUIDv7 (time-ordered)."},"name":{"type":"string"},"status":{"type":"string","enum":["draft","scheduled","sending","sent","paused","canceled"],"description":"Lifecycle status of an email broadcast."},"pausedReason":{"type":"string","enum":["PAUSED_BY_USER","REPUTATION_GUARD","PLAN_EXCEEDED","PENDING_VERIFICATION","AUDIENCE_LIMITS_EXCEEDED","UNVERIFIED_DOMAIN","SPAM_CONTENT"]},"type":{"type":"string","description":"Notification type id. Required before send or schedule."},"channel":{"type":"string","enum":["email"],"description":"Email-only in v1; forward-compatible field."},"fromName":{"type":"string"},"fromAddress":{"type":"string","description":"From address. Use an address on a domain verified for this account to email other people. The shared address `noreply@pingram.io` can send a test broadcast only to your own account email as the sole recipient. Verify a domain to send to a wider audience."},"replyToAddress":{"type":"string"},"subject":{"type":"string"},"scheduleAt":{"type":"string","description":"ISO datetime for scheduled broadcasts."},"archivedAt":{"type":"string","description":"Set when the user archives the broadcast; hidden from the default list."},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["audience","broadcastId","channel","createdAt","fromAddress","fromName","name","status","subject","updatedAt"]}},"nextToken":{"type":"string"}},"required":["broadcasts"],"additionalProperties":false},"ListInvoicesResponse":{"type":"object","properties":{"invoices":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string","description":"Human-readable invoice number, when assigned."},"status":{"type":"string","enum":["draft","open","paid","uncollectible","void"]},"currency":{"type":"string"},"total":{"type":"number","description":"Total amount due on the invoice (cents)."},"amountDue":{"type":"number"},"amountPaid":{"type":"number"},"created":{"type":"number","description":"Unix timestamp (seconds) when the invoice was created."},"hostedInvoiceUrl":{"type":"string","description":"Link to view or pay this invoice."},"invoicePdf":{"type":"string","description":"Direct PDF download URL."},"periodStart":{"type":"number","description":"Billing period start (unix seconds), when applicable."},"periodEnd":{"type":"number","description":"Billing period end (unix seconds), when applicable."}},"required":["id","currency","total","amountDue","amountPaid","created"],"additionalProperties":false}},"hasMore":{"type":"boolean","description":"True when more invoices exist; pass the last invoice `id` as `startingAfter`."}},"required":["invoices","hasMore"],"additionalProperties":false,"description":"GET /account/invoices response."},"ListLibraryResponse":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"useCase":{"type":"string","enum":["media","logos"]},"filename":{"type":"string"},"key":{"type":"string"},"url":{"type":"string"},"size":{"type":"number"},"lastModified":{"type":"string"}},"required":["id","useCase","filename","key","url","size","lastModified"],"additionalProperties":false}},"nextToken":{"type":"string"}},"required":["items"],"additionalProperties":false},"ListPersonalAccessTokensResponse":{"type":"object","properties":{"tokens":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"tokenPrefix":{"type":"string"},"createdAt":{"type":"string"},"expiresAt":{"type":"string"},"lastUsedAt":{"type":"string"},"revoked":{"type":"boolean"}},"required":["id","name","tokenPrefix","createdAt","revoked"],"additionalProperties":false,"description":"Public metadata returned by list/create (no tokenHash)."}}},"required":["tokens"],"additionalProperties":false},"ListPhoneNumbersResponse":{"type":"object","properties":{"numbers":{"type":"array","items":{"type":"object","properties":{"phoneNumber":{"type":"string","description":"E.164"},"label":{"type":"string"},"createdAt":{"type":"string","description":"ISO timestamp when the number was registered"},"countryCode":{"type":"string","description":"ISO 3166-1 alpha-2 country code"},"numberType":{"type":"string","description":"e.g. local, toll_free"},"billingStatus":{"type":"string","enum":["active","released"],"description":"active or released"},"nextBillingDate":{"type":"string","description":"YYYY-MM-DD next monthly rent charge"},"monthlyPrice":{"type":"number","description":"Monthly cost in USD"},"a2pStatus":{"type":"string","enum":["pending","testing","approved"],"description":"US 10DLC readiness derived from stored campaign assignment"},"releasedAt":{"type":"string","description":"ISO timestamp when the number was released (released numbers only)"},"inbound":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["script"]},"steps":{"type":"array","items":{"type":"object","properties":{"verb":{"type":"string","enum":["Say"]},"text":{"type":"string"}},"required":["verb","text"],"additionalProperties":false,"description":"One spoken line."}},"stream":{"type":"object","properties":{"audio":{"type":"boolean","description":"Live call audio. Omitted means off."},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"What the call socket carries. Omitted means the socket is open and carries neither."},"privacy":{"type":"object","properties":{"record":{"type":"boolean"},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"Omitted record and transcript mean both are off."}},"required":["type","steps"],"additionalProperties":false,"title":"Script"},{"type":"object","properties":{"type":{"type":"string","enum":["agent"]},"greeting":{"type":"string"},"agent":{"type":"object","properties":{"instructions":{"type":"string"},"model":{"description":"Configuration for which model processes the call, including its voice settings. `model` chooses the realtime model. `voiceId` must be a voice offered by that model.","oneOf":[{"type":"object","additionalProperties":false,"properties":{"effort":{"type":"string","enum":["minimal","low","medium","high","xhigh"]},"model":{"type":"string","enum":["openai:gpt-realtime-2.1"],"description":"Which realtime model processes the call."},"voiceId":{"type":"string","enum":["alloy","ash","ballad","coral","echo","sage","shimmer","verse","marin","cedar"]},"temperature":{"type":"number","description":"How varied replies are. 0 is focused, 1 is more creative. Default: 0.8."},"maxTokens":{"type":"number","description":"Maximum length of one reply, in tokens. Default: 4096."}},"required":["model"],"title":"OpenaiGptRealtime21"},{"type":"object","additionalProperties":false,"properties":{"effort":{"type":"string","enum":["minimal","low","medium","high","xhigh"]},"model":{"type":"string","enum":["openai:gpt-realtime-2.1-mini"],"description":"Which realtime model processes the call."},"voiceId":{"type":"string","enum":["alloy","ash","ballad","coral","echo","sage","shimmer","verse","marin","cedar"]},"temperature":{"type":"number","description":"How varied replies are. 0 is focused, 1 is more creative. Default: 0.8."},"maxTokens":{"type":"number","description":"Maximum length of one reply, in tokens. Default: 4096."}},"required":["model"],"title":"OpenaiGptRealtime21Mini"},{"type":"object","additionalProperties":false,"properties":{"effort":{"type":"string","enum":["none","low","medium","high","xhigh","max"]},"model":{"type":"string","enum":["openai:gpt-live-1"],"description":"Which realtime model processes the call."},"voiceId":{"type":"string","enum":["alloy","ash","ballad","coral","echo","sage","shimmer","verse","marin","cedar","quartz","ripple","vesper","willow","stone","gleam","meridian","bossa","tempo","beacon","delta","cinder"]},"temperature":{"type":"number","description":"How varied replies are. 0 is focused, 1 is more creative. Default: 0.8."},"maxTokens":{"type":"number","description":"Maximum length of one reply, in tokens. Default: 4096."}},"required":["model"],"title":"OpenaiGptLive1"},{"type":"object","additionalProperties":false,"properties":{"effort":{"type":"string","enum":["minimal","low","medium","high"]},"model":{"type":"string","enum":["google:gemini-3.1-flash-live-preview"],"description":"Which realtime model processes the call."},"voiceId":{"type":"string","enum":["Puck","Charon","Kore","Fenrir","Aoede","Leda","Orus","Zephyr"]},"temperature":{"type":"number","description":"How varied replies are. 0 is focused, 1 is more creative. Default: 0.8."},"maxTokens":{"type":"number","description":"Maximum length of one reply, in tokens. Default: 4096."}},"required":["model"],"title":"GoogleGemini31FlashLivePreview"},{"type":"object","additionalProperties":false,"properties":{"model":{"type":"string","enum":["xai:grok-voice-latest"],"description":"Which realtime model processes the call."},"voiceId":{"type":"string","enum":["eve","ara","rex","sal","leo"]},"temperature":{"type":"number","description":"How varied replies are. 0 is focused, 1 is more creative. Default: 0.8."},"maxTokens":{"type":"number","description":"Maximum length of one reply, in tokens. Default: 4096."}},"required":["model"],"title":"XaiGrokVoiceLatest"},{"type":"object","additionalProperties":false,"properties":{"language":{"type":"string","enum":["en","ar","bg","zh","hr","cs","da","nl","fil","fi","fr","de","el","he","hi","hu","id","it","ja","ko","ms","no","pl","pt","ro","ru","sk","es","sv","ta","tr","uk","vi"]},"model":{"type":"string","enum":["elevenlabs:eleven_realtime_v1_mini"],"description":"Which realtime model processes the call."},"voiceId":{"type":"string","enum":["brian","rachel","adam","antoni","elli","josh","bella","charlotte","dTmTLshIypwp08eftJH6","M8xXPW1xIZVqZLxYby5T","KbgdAMqTSb5aaLUaXEm2"]},"temperature":{"type":"number","description":"How varied replies are. 0 is focused, 1 is more creative. Default: 0.8."},"maxTokens":{"type":"number","description":"Maximum length of one reply, in tokens. Default: 4096."}},"required":["model"],"title":"ElevenlabsElevenRealtimeV1Mini"},{"type":"object","additionalProperties":false,"properties":{"language":{"type":"string","enum":["en","ar","bg","zh","hr","cs","da","nl","fil","fi","fr","de","el","he","hi","hu","id","it","ja","ko","ms","no","pl","pt","ro","ru","sk","es","sv","ta","tr","uk","vi"]},"model":{"type":"string","enum":["elevenlabs:eleven_realtime_v1_max"],"description":"Which realtime model processes the call."},"voiceId":{"type":"string","enum":["brian","rachel","adam","antoni","elli","josh","bella","charlotte","dTmTLshIypwp08eftJH6","M8xXPW1xIZVqZLxYby5T","KbgdAMqTSb5aaLUaXEm2"]},"temperature":{"type":"number","description":"How varied replies are. 0 is focused, 1 is more creative. Default: 0.8."},"maxTokens":{"type":"number","description":"Maximum length of one reply, in tokens. Default: 4096."}},"required":["model"],"title":"ElevenlabsElevenRealtimeV1Max"}]},"tools":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["transfer"],"description":"Transfer the live call to one of destinations."},"destinations":{"type":"array","items":{"type":"object","properties":{"phoneNumber":{"type":"string","description":"E.164 number to transfer the caller to."},"condition":{"type":"string","description":"When the model should choose this number. Required when more than one destination is set."},"holdSay":{"type":"string","description":"Spoken once to the caller while they wait. If holdAudio is also set, this sentence plays first and then the audio."},"holdAudio":{"type":"string","description":"`builtin:soft-piano`, `builtin:calm`, `builtin:bright`, or an HTTPS MP3 or WAV. Loops until the call connects. Omit it and the caller hears ringing."},"receiverInstruction":{"type":"string","description":"Shown to the agent with this number. Tells it whether and how to write the sentence spoken to the person who answers. Never spoken. Omit it and the agent is asked to say who is calling and why."}},"required":["phoneNumber","condition"],"additionalProperties":false},"description":"Numbers the agent can transfer to. Set a condition on each when there is more than one."}},"required":["type","destinations"],"additionalProperties":false,"description":"Transfer the caller to a phone number.","title":"Transfer"},{"type":"object","properties":{"type":{"type":"string","enum":["dtmf"],"description":"Send DTMF keypad tones during the call."}},"required":["type"],"additionalProperties":false,"description":"Let the agent send keypad tones.","title":"Dtmf"},{"type":"object","properties":{"type":{"type":"string","enum":["disconnect"],"description":"End the call after saying goodbye."}},"required":["type"],"additionalProperties":false,"description":"Let the agent hang up.","title":"Disconnect"},{"type":"object","properties":{"type":{"type":"string","enum":["weather"],"description":"Current weather for a city the caller names."}},"required":["type"],"additionalProperties":false,"description":"Look up the current weather for a city.","title":"Weather"},{"type":"object","properties":{"type":{"type":"string","enum":["custom"],"description":"Invoke an HTTPS webhook when the model calls this tool."},"name":{"type":"string","description":"Function name the model calls."},"description":{"type":"string","description":"When the model should use this tool."},"parameters":{"type":"object","additionalProperties":{},"description":"JSON Schema for the arguments the model passes."},"url":{"type":"string","description":"HTTPS webhook invoked when the model calls this tool during a call."},"beforeSpeech":{"type":"string","description":"Spoken before the webhook when this turn has not spoken yet."},"slowSpeechAfterSeconds":{"type":"number","description":"Wait this many seconds, then speak slowSpeech if the webhook is still running."},"slowSpeech":{"type":"string","description":"Spoken once when the webhook is still running after slowSpeechAfterSeconds."}},"required":["type","name","description","parameters"],"additionalProperties":false,"description":"Call an HTTPS webhook from the conversation.","title":"Custom"},{"type":"object","properties":{"type":{"type":"string","enum":["mcp"],"description":"Connect a remote MCP server and use its tools."},"url":{"type":"string","description":"MCP server URL."},"label":{"type":"string","description":"Optional name shown in the dashboard."}},"required":["type","url"],"additionalProperties":false,"description":"Load tools from a remote MCP server.","title":"Mcp"},{"type":"object","properties":{"type":{"type":"string","enum":["knowledge"],"description":"Search uploaded documents during the call."},"documents":{"type":"array","items":{"type":"object","properties":{"docId":{"type":"string","description":"Opaque identifier for an uploaded knowledge document."},"name":{"type":"string","description":"File name shown to the agent and in the dashboard."},"sizeBytes":{"type":"number","description":"File size in bytes."}},"required":["docId","name","sizeBytes"],"additionalProperties":false},"description":"Files the agent can search."}},"required":["type","documents"],"additionalProperties":false,"description":"Answer from uploaded documents.","title":"Knowledge"}]}},"variables":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"Placeholder name used inside {{name}} tags."},"description":{"type":"string","description":"What the value means. Passed to the model with the filled value."},"defaultValue":{"type":"string","description":"Used when the call does not pass this variable."}},"required":["name"],"additionalProperties":false}},"conversation":{"type":"object","properties":{"turnDetection":{"type":"string","enum":["semantic","vad"],"description":"How the agent decides the caller has finished speaking. Default: semantic."},"minEndOfTurnSilenceMs":{"type":"number","description":"Silence before the agent treats the turn as finished, in milliseconds. Default: 500."},"allowInterruptions":{"type":"boolean","description":"Whether the caller can interrupt the agent. Default: true."},"minInterruptionDurationMs":{"type":"number","description":"How long the caller must speak to count as an interruption, in milliseconds. Default: 300."},"silenceTimeoutSeconds":{"type":"number","description":"Seconds of silence before the agent hangs up. 0 never hangs up. Default: 30."},"maxCallLengthSeconds":{"type":"number","description":"Maximum call length in seconds. Default: 600."}},"additionalProperties":false,"description":"Turn-taking and call limits. Each omitted field uses its default."}},"required":["instructions","model"],"additionalProperties":false,"description":"Speech-to-speech block shared by inbound and outbound agent calls."},"stream":{"type":"object","properties":{"audio":{"type":"boolean","description":"Live call audio. Omitted means off."},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"What the call socket carries. Omitted means the socket is open and carries neither."},"privacy":{"type":"object","properties":{"record":{"type":"boolean"},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"Omitted record and transcript mean both are off."}},"required":["type","agent"],"additionalProperties":false,"title":"Agent"},{"type":"object","properties":{"type":{"type":"string","enum":["transfer"]},"to":{"type":"string"},"holdSay":{"type":"string","description":"Spoken once to the caller while they wait. If holdAudio is also set, this sentence plays first and then the audio."},"holdAudio":{"type":"string","description":"`builtin:soft-piano`, `builtin:calm`, `builtin:bright`, or an HTTPS MP3 or WAV. Loops until the call connects. Omit it and the caller hears ringing."},"receiverSay":{"type":"string","description":"Spoken to the person who answers, before the caller is connected."},"stream":{"type":"object","properties":{"audio":{"type":"boolean","description":"Live call audio. Omitted means off."},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"What the call socket carries. Omitted means the socket is open and carries neither."},"privacy":{"type":"object","properties":{"record":{"type":"boolean"},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"Omitted record and transcript mean both are off."}},"required":["type","to"],"additionalProperties":false,"title":"Transfer"},{"type":"object","properties":{"type":{"type":"string","enum":["elevenlabs"]},"stream":{"type":"object","properties":{"audio":{"type":"boolean","description":"Live call audio. Omitted means off."},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"What the call socket carries. Omitted means the socket is open and carries neither."},"privacy":{"type":"object","properties":{"record":{"type":"boolean"},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"Omitted record and transcript mean both are off."}},"required":["type"],"additionalProperties":false,"description":"Answer and SIP-transfer the caller to ElevenLabs. The destination is the called number.","title":"Elevenlabs"},{"type":"object","properties":{"type":{"type":"string","enum":["disabled"]}},"required":["type"],"additionalProperties":false,"title":"Disabled"},{"type":"object","properties":{"type":{"type":"string","enum":["stream"]},"stream":{"type":"object","properties":{"audio":{"type":"boolean","description":"Live call audio. Omitted means off."},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"What the call socket carries. Omitted means the socket is open and carries neither."},"privacy":{"type":"object","properties":{"record":{"type":"boolean"},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"Omitted record and transcript mean both are off."}},"required":["type"],"additionalProperties":false,"description":"The customer's websocket is the application side. No script and no agent.","title":"Stream"}]}},"required":["phoneNumber","createdAt","countryCode","numberType","billingStatus","nextBillingDate","monthlyPrice"],"additionalProperties":false,"description":"Represents a phone number in the account"}},"sharedNumber":{"type":"string","description":"E.164 shared number the account can send from when it has no dedicated number."}},"required":["numbers","sharedNumber"],"additionalProperties":false},"ListReleasedPhoneNumbersResponse":{"type":"object","properties":{"numbers":{"type":"array","items":{"type":"object","properties":{"phoneNumber":{"type":"string","description":"E.164"},"label":{"type":"string"},"createdAt":{"type":"string","description":"ISO timestamp when the number was registered"},"countryCode":{"type":"string","description":"ISO 3166-1 alpha-2 country code"},"numberType":{"type":"string","description":"e.g. local, toll_free"},"billingStatus":{"type":"string","enum":["active","released"],"description":"active or released"},"nextBillingDate":{"type":"string","description":"YYYY-MM-DD next monthly rent charge"},"monthlyPrice":{"type":"number","description":"Monthly cost in USD"},"a2pStatus":{"type":"string","enum":["pending","testing","approved"],"description":"US 10DLC readiness derived from stored campaign assignment"},"releasedAt":{"type":"string","description":"ISO timestamp when the number was released (released numbers only)"},"inbound":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["script"]},"steps":{"type":"array","items":{"type":"object","properties":{"verb":{"type":"string","enum":["Say"]},"text":{"type":"string"}},"required":["verb","text"],"additionalProperties":false,"description":"One spoken line."}},"stream":{"type":"object","properties":{"audio":{"type":"boolean","description":"Live call audio. Omitted means off."},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"What the call socket carries. Omitted means the socket is open and carries neither."},"privacy":{"type":"object","properties":{"record":{"type":"boolean"},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"Omitted record and transcript mean both are off."}},"required":["type","steps"],"additionalProperties":false,"title":"Script"},{"type":"object","properties":{"type":{"type":"string","enum":["agent"]},"greeting":{"type":"string"},"agent":{"type":"object","properties":{"instructions":{"type":"string"},"model":{"description":"Configuration for which model processes the call, including its voice settings. `model` chooses the realtime model. `voiceId` must be a voice offered by that model.","oneOf":[{"type":"object","additionalProperties":false,"properties":{"effort":{"type":"string","enum":["minimal","low","medium","high","xhigh"]},"model":{"type":"string","enum":["openai:gpt-realtime-2.1"],"description":"Which realtime model processes the call."},"voiceId":{"type":"string","enum":["alloy","ash","ballad","coral","echo","sage","shimmer","verse","marin","cedar"]},"temperature":{"type":"number","description":"How varied replies are. 0 is focused, 1 is more creative. Default: 0.8."},"maxTokens":{"type":"number","description":"Maximum length of one reply, in tokens. Default: 4096."}},"required":["model"],"title":"OpenaiGptRealtime21"},{"type":"object","additionalProperties":false,"properties":{"effort":{"type":"string","enum":["minimal","low","medium","high","xhigh"]},"model":{"type":"string","enum":["openai:gpt-realtime-2.1-mini"],"description":"Which realtime model processes the call."},"voiceId":{"type":"string","enum":["alloy","ash","ballad","coral","echo","sage","shimmer","verse","marin","cedar"]},"temperature":{"type":"number","description":"How varied replies are. 0 is focused, 1 is more creative. Default: 0.8."},"maxTokens":{"type":"number","description":"Maximum length of one reply, in tokens. Default: 4096."}},"required":["model"],"title":"OpenaiGptRealtime21Mini"},{"type":"object","additionalProperties":false,"properties":{"effort":{"type":"string","enum":["none","low","medium","high","xhigh","max"]},"model":{"type":"string","enum":["openai:gpt-live-1"],"description":"Which realtime model processes the call."},"voiceId":{"type":"string","enum":["alloy","ash","ballad","coral","echo","sage","shimmer","verse","marin","cedar","quartz","ripple","vesper","willow","stone","gleam","meridian","bossa","tempo","beacon","delta","cinder"]},"temperature":{"type":"number","description":"How varied replies are. 0 is focused, 1 is more creative. Default: 0.8."},"maxTokens":{"type":"number","description":"Maximum length of one reply, in tokens. Default: 4096."}},"required":["model"],"title":"OpenaiGptLive1"},{"type":"object","additionalProperties":false,"properties":{"effort":{"type":"string","enum":["minimal","low","medium","high"]},"model":{"type":"string","enum":["google:gemini-3.1-flash-live-preview"],"description":"Which realtime model processes the call."},"voiceId":{"type":"string","enum":["Puck","Charon","Kore","Fenrir","Aoede","Leda","Orus","Zephyr"]},"temperature":{"type":"number","description":"How varied replies are. 0 is focused, 1 is more creative. Default: 0.8."},"maxTokens":{"type":"number","description":"Maximum length of one reply, in tokens. Default: 4096."}},"required":["model"],"title":"GoogleGemini31FlashLivePreview"},{"type":"object","additionalProperties":false,"properties":{"model":{"type":"string","enum":["xai:grok-voice-latest"],"description":"Which realtime model processes the call."},"voiceId":{"type":"string","enum":["eve","ara","rex","sal","leo"]},"temperature":{"type":"number","description":"How varied replies are. 0 is focused, 1 is more creative. Default: 0.8."},"maxTokens":{"type":"number","description":"Maximum length of one reply, in tokens. Default: 4096."}},"required":["model"],"title":"XaiGrokVoiceLatest"},{"type":"object","additionalProperties":false,"properties":{"language":{"type":"string","enum":["en","ar","bg","zh","hr","cs","da","nl","fil","fi","fr","de","el","he","hi","hu","id","it","ja","ko","ms","no","pl","pt","ro","ru","sk","es","sv","ta","tr","uk","vi"]},"model":{"type":"string","enum":["elevenlabs:eleven_realtime_v1_mini"],"description":"Which realtime model processes the call."},"voiceId":{"type":"string","enum":["brian","rachel","adam","antoni","elli","josh","bella","charlotte","dTmTLshIypwp08eftJH6","M8xXPW1xIZVqZLxYby5T","KbgdAMqTSb5aaLUaXEm2"]},"temperature":{"type":"number","description":"How varied replies are. 0 is focused, 1 is more creative. Default: 0.8."},"maxTokens":{"type":"number","description":"Maximum length of one reply, in tokens. Default: 4096."}},"required":["model"],"title":"ElevenlabsElevenRealtimeV1Mini"},{"type":"object","additionalProperties":false,"properties":{"language":{"type":"string","enum":["en","ar","bg","zh","hr","cs","da","nl","fil","fi","fr","de","el","he","hi","hu","id","it","ja","ko","ms","no","pl","pt","ro","ru","sk","es","sv","ta","tr","uk","vi"]},"model":{"type":"string","enum":["elevenlabs:eleven_realtime_v1_max"],"description":"Which realtime model processes the call."},"voiceId":{"type":"string","enum":["brian","rachel","adam","antoni","elli","josh","bella","charlotte","dTmTLshIypwp08eftJH6","M8xXPW1xIZVqZLxYby5T","KbgdAMqTSb5aaLUaXEm2"]},"temperature":{"type":"number","description":"How varied replies are. 0 is focused, 1 is more creative. Default: 0.8."},"maxTokens":{"type":"number","description":"Maximum length of one reply, in tokens. Default: 4096."}},"required":["model"],"title":"ElevenlabsElevenRealtimeV1Max"}]},"tools":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["transfer"],"description":"Transfer the live call to one of destinations."},"destinations":{"type":"array","items":{"type":"object","properties":{"phoneNumber":{"type":"string","description":"E.164 number to transfer the caller to."},"condition":{"type":"string","description":"When the model should choose this number. Required when more than one destination is set."},"holdSay":{"type":"string","description":"Spoken once to the caller while they wait. If holdAudio is also set, this sentence plays first and then the audio."},"holdAudio":{"type":"string","description":"`builtin:soft-piano`, `builtin:calm`, `builtin:bright`, or an HTTPS MP3 or WAV. Loops until the call connects. Omit it and the caller hears ringing."},"receiverInstruction":{"type":"string","description":"Shown to the agent with this number. Tells it whether and how to write the sentence spoken to the person who answers. Never spoken. Omit it and the agent is asked to say who is calling and why."}},"required":["phoneNumber","condition"],"additionalProperties":false},"description":"Numbers the agent can transfer to. Set a condition on each when there is more than one."}},"required":["type","destinations"],"additionalProperties":false,"description":"Transfer the caller to a phone number.","title":"Transfer"},{"type":"object","properties":{"type":{"type":"string","enum":["dtmf"],"description":"Send DTMF keypad tones during the call."}},"required":["type"],"additionalProperties":false,"description":"Let the agent send keypad tones.","title":"Dtmf"},{"type":"object","properties":{"type":{"type":"string","enum":["disconnect"],"description":"End the call after saying goodbye."}},"required":["type"],"additionalProperties":false,"description":"Let the agent hang up.","title":"Disconnect"},{"type":"object","properties":{"type":{"type":"string","enum":["weather"],"description":"Current weather for a city the caller names."}},"required":["type"],"additionalProperties":false,"description":"Look up the current weather for a city.","title":"Weather"},{"type":"object","properties":{"type":{"type":"string","enum":["custom"],"description":"Invoke an HTTPS webhook when the model calls this tool."},"name":{"type":"string","description":"Function name the model calls."},"description":{"type":"string","description":"When the model should use this tool."},"parameters":{"type":"object","additionalProperties":{},"description":"JSON Schema for the arguments the model passes."},"url":{"type":"string","description":"HTTPS webhook invoked when the model calls this tool during a call."},"beforeSpeech":{"type":"string","description":"Spoken before the webhook when this turn has not spoken yet."},"slowSpeechAfterSeconds":{"type":"number","description":"Wait this many seconds, then speak slowSpeech if the webhook is still running."},"slowSpeech":{"type":"string","description":"Spoken once when the webhook is still running after slowSpeechAfterSeconds."}},"required":["type","name","description","parameters"],"additionalProperties":false,"description":"Call an HTTPS webhook from the conversation.","title":"Custom"},{"type":"object","properties":{"type":{"type":"string","enum":["mcp"],"description":"Connect a remote MCP server and use its tools."},"url":{"type":"string","description":"MCP server URL."},"label":{"type":"string","description":"Optional name shown in the dashboard."}},"required":["type","url"],"additionalProperties":false,"description":"Load tools from a remote MCP server.","title":"Mcp"},{"type":"object","properties":{"type":{"type":"string","enum":["knowledge"],"description":"Search uploaded documents during the call."},"documents":{"type":"array","items":{"type":"object","properties":{"docId":{"type":"string","description":"Opaque identifier for an uploaded knowledge document."},"name":{"type":"string","description":"File name shown to the agent and in the dashboard."},"sizeBytes":{"type":"number","description":"File size in bytes."}},"required":["docId","name","sizeBytes"],"additionalProperties":false},"description":"Files the agent can search."}},"required":["type","documents"],"additionalProperties":false,"description":"Answer from uploaded documents.","title":"Knowledge"}]}},"variables":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"Placeholder name used inside {{name}} tags."},"description":{"type":"string","description":"What the value means. Passed to the model with the filled value."},"defaultValue":{"type":"string","description":"Used when the call does not pass this variable."}},"required":["name"],"additionalProperties":false}},"conversation":{"type":"object","properties":{"turnDetection":{"type":"string","enum":["semantic","vad"],"description":"How the agent decides the caller has finished speaking. Default: semantic."},"minEndOfTurnSilenceMs":{"type":"number","description":"Silence before the agent treats the turn as finished, in milliseconds. Default: 500."},"allowInterruptions":{"type":"boolean","description":"Whether the caller can interrupt the agent. Default: true."},"minInterruptionDurationMs":{"type":"number","description":"How long the caller must speak to count as an interruption, in milliseconds. Default: 300."},"silenceTimeoutSeconds":{"type":"number","description":"Seconds of silence before the agent hangs up. 0 never hangs up. Default: 30."},"maxCallLengthSeconds":{"type":"number","description":"Maximum call length in seconds. Default: 600."}},"additionalProperties":false,"description":"Turn-taking and call limits. Each omitted field uses its default."}},"required":["instructions","model"],"additionalProperties":false,"description":"Speech-to-speech block shared by inbound and outbound agent calls."},"stream":{"type":"object","properties":{"audio":{"type":"boolean","description":"Live call audio. Omitted means off."},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"What the call socket carries. Omitted means the socket is open and carries neither."},"privacy":{"type":"object","properties":{"record":{"type":"boolean"},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"Omitted record and transcript mean both are off."}},"required":["type","agent"],"additionalProperties":false,"title":"Agent"},{"type":"object","properties":{"type":{"type":"string","enum":["transfer"]},"to":{"type":"string"},"holdSay":{"type":"string","description":"Spoken once to the caller while they wait. If holdAudio is also set, this sentence plays first and then the audio."},"holdAudio":{"type":"string","description":"`builtin:soft-piano`, `builtin:calm`, `builtin:bright`, or an HTTPS MP3 or WAV. Loops until the call connects. Omit it and the caller hears ringing."},"receiverSay":{"type":"string","description":"Spoken to the person who answers, before the caller is connected."},"stream":{"type":"object","properties":{"audio":{"type":"boolean","description":"Live call audio. Omitted means off."},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"What the call socket carries. Omitted means the socket is open and carries neither."},"privacy":{"type":"object","properties":{"record":{"type":"boolean"},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"Omitted record and transcript mean both are off."}},"required":["type","to"],"additionalProperties":false,"title":"Transfer"},{"type":"object","properties":{"type":{"type":"string","enum":["elevenlabs"]},"stream":{"type":"object","properties":{"audio":{"type":"boolean","description":"Live call audio. Omitted means off."},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"What the call socket carries. Omitted means the socket is open and carries neither."},"privacy":{"type":"object","properties":{"record":{"type":"boolean"},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"Omitted record and transcript mean both are off."}},"required":["type"],"additionalProperties":false,"description":"Answer and SIP-transfer the caller to ElevenLabs. The destination is the called number.","title":"Elevenlabs"},{"type":"object","properties":{"type":{"type":"string","enum":["disabled"]}},"required":["type"],"additionalProperties":false,"title":"Disabled"},{"type":"object","properties":{"type":{"type":"string","enum":["stream"]},"stream":{"type":"object","properties":{"audio":{"type":"boolean","description":"Live call audio. Omitted means off."},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"What the call socket carries. Omitted means the socket is open and carries neither."},"privacy":{"type":"object","properties":{"record":{"type":"boolean"},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"Omitted record and transcript mean both are off."}},"required":["type"],"additionalProperties":false,"description":"The customer's websocket is the application side. No script and no agent.","title":"Stream"}]}},"required":["phoneNumber","createdAt","countryCode","numberType","billingStatus","nextBillingDate","monthlyPrice"],"additionalProperties":false,"description":"Represents a phone number in the account"}}},"required":["numbers"],"additionalProperties":false},"ListVoiceCallsResponse":{"type":"object","properties":{"calls":{"type":"array","items":{"type":"object","properties":{"trackingId":{"type":"string"},"status":{"type":"string","enum":["active","ended","failed"]},"configName":{"type":"string"},"direction":{"type":"string","enum":["inbound","outbound"]},"source":{"type":"string","enum":["pstn","web"]},"from":{"type":"string"},"to":{"type":"string"},"startedAt":{"type":"string"},"answeredAt":{"type":"string","description":"Set when the callee answers. Absent while the phone is still ringing."},"durationSeconds":{"type":"number"},"outcome":{"type":"string","enum":["completed","transferred","voicemail","no_answer","failed"]},"endReason":{"type":"string","enum":["user_hangup","agent_end_call","silence_timeout","max_duration","free_tier_limit","transferred","voicemail","provider_error","connection_lost","no_answer","session_expired","server_shutdown"],"description":"Machine-readable reason the call ended — persisted on every call record."},"endDetail":{"type":"string","description":"Short human-readable detail, such as why the call failed."},"websocket":{"type":"string","description":"Live call socket. Present while the call is active."},"token":{"type":"string","description":"Token for the live call socket. Present while the call is active."}},"required":["trackingId","status","configName","direction","source","from","to","startedAt","durationSeconds"],"additionalProperties":false}},"cursor":{"type":"string","description":"Pass back as ?cursor= to fetch the next page."}},"required":["calls"],"additionalProperties":false},"LocalNumberAdminUpdateRequest":{"type":"object","properties":{"status":{"type":"string","enum":["not_started","in_progress","pending_review","approved","rejected","info_needed"],"description":"Pingram-side 10DLC registration workflow status (brand or campaign).\n- not_started: no customer submission yet\n- pending_review: customer submitted; Pingram has not submitted to carriers\n- in_progress: submitted for carrier review\n- approved | rejected | info_needed: review outcome"},"registrationType":{"type":"string","enum":["personal","business"],"description":"Whether this local number is registered to a person or a business.\n- personal: an individual. firstName and lastName are that person.\n- business: a company. firstName and lastName are the authorized representative."},"fields":{"type":"object","properties":{"firstName":{"type":"string","description":"First name. For a business registration, the authorized representative."},"lastName":{"type":"string","description":"Last name. For a business registration, the authorized representative."},"contactPhone":{"type":"string","description":"Contact phone number."},"street":{"type":"string","description":"Street address, including the building number and street name. An IL registration also includes the apartment or suite."},"city":{"type":"string","description":"City."},"postalCode":{"type":"string","description":"Postal or ZIP code."},"buildingNumber":{"type":"string","description":"Building number when it is sent separately from the street address."},"state":{"type":"string","description":"State or province. Required for an IL registration."},"companyName":{"type":"string","description":"Company name. Required for a business registration."},"companyWebsite":{"type":"string","description":"Company website, including https://. Required for a GB business registration."},"businessUseCase":{"type":"string","description":"How this number will be used. Required. A personal registration describes the inbound line, such as appointment reminders or two-factor authentication codes. A business registration describes messages sent to people who opted in, such as appointment reminders or delivery updates."},"subAllocated":{"type":"boolean","description":"True when someone else, such as a client, will use the number. False when you or your business will use it."},"subAllocatedParty":{"type":"string","description":"Name of the person or business who will use the number. Required when subAllocated is true."},"addressCountry":{"type":"string","description":"Country of the address, as a country name or an ISO 3166-1 alpha-2 code. Required for an IL registration, which can use an address outside Israel. A GB registration uses a United Kingdom address and does not send this field."}},"required":["firstName","lastName","contactPhone","street","city","postalCode"],"additionalProperties":false}},"additionalProperties":false},"LocalNumberSubmitRequest":{"type":"object","properties":{"useCase":{"type":"string","description":"Admin-confirmed use case. Required for personal registrations."},"subAllocated":{"type":"boolean","description":"Whether the number will be sub-allocated to a third party."},"subAllocatedParty":{"type":"string","description":"Required when subAllocated is true."}},"additionalProperties":false},"LocalNumberUploadRequest":{"type":"object","properties":{"docKind":{"type":"string","enum":["passport_or_id","company_registration_certificate","utility_bill","business_registration_certificate","proof_of_address"],"description":"Which document this is.\n- passport_or_id: GB personal, with utility_bill.\n- utility_bill: needed for GB registration; must be less than 3 months old.\n- company_registration_certificate: GB business, with utility_bill.\n- proof_of_address: needed for IL registration; must be less than 3 months old.\n- business_registration_certificate: IL business, with proof_of_address."},"fileName":{"type":"string"},"contentType":{"type":"string"},"contentLength":{"type":"number"}},"required":["docKind","fileName","contentType","contentLength"],"additionalProperties":false},"LocalNumberUploadResponse":{"type":"object","properties":{"uploadUrl":{"type":"string"},"s3Key":{"type":"string"},"method":{"type":"string","enum":["PUT"]}},"required":["uploadUrl","s3Key","method"],"additionalProperties":false},"LogQueryPostBody":{"type":"object","properties":{"dateRangeFilter":{"type":"array","items":{"type":"number"},"minItems":2,"maxItems":2,"description":"A tuple of [startTime, endTime] for the date range filter, each representing a unix timestamp."},"userFilter":{"type":"string"},"envIdFilter":{"type":"array","items":{"type":"string"}},"statusFilter":{"type":"string"},"channelFilter":{"type":"array","items":{"type":"string","enum":["email","inapp","sms","call","voice","web_push","mobile_push","slack"]}},"notificationFilter":{"type":"array","items":{"type":"string"}}},"additionalProperties":false},"LogsBulkRequest":{"type":"object","properties":{"trackingIds":{"type":"array","items":{"type":"string"}}},"required":["trackingIds"],"additionalProperties":false,"description":"Request type for POST /logs/bulk"},"LogsDeliveryStatusResponse":{"type":"object","properties":{"statuses":{"type":"array","items":{"type":"object","properties":{"trackingId":{"type":"string","description":"Opaque id returned when the notification was accepted."},"channel":{"type":"string","enum":["EMAIL","SMS"],"description":"Channel named on a delivery-status row. Email and SMS only. Coarse labels: no address or provider id."},"status":{"type":"string","enum":["PROCESSING","FAILED","IGNORED","SCHEDULED","UNSCHEDULED","BATCHED","SENT","DELIVERED","BOUNCED","COMPLAINT","THROTTLED","DEDUPLICATED","OPENED","CLICKED","INBOUND","AUTO_REPLY"],"description":"Delivery outcome for one request or one channel. These are the same states shown in the dashboard status column."},"updatedAt":{"type":"string","description":"ISO 8601 time this outcome was recorded."}},"required":["trackingId","status","updatedAt"],"additionalProperties":false,"description":"One delivery outcome. Fields are limited to the tracking id, channel, status, and the time that status was recorded. `channel` is omitted when the outcome is for the whole request, before a channel was chosen."},"description":"Delivery outcomes for the requested tracking ids."}},"required":["statuses"],"additionalProperties":false,"description":"Response type for GET /logs/status/{trackingIds}. Unknown tracking ids are omitted. A log that is still ingesting is omitted until it can be read."},"LogsGetResponse":{"type":"object","properties":{"logs":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"received_at":{"type":"string"},"type":{"type":"string"},"envId":{"type":"string"},"clientId":{"type":"string"},"agent":{"type":"string"},"ip":{"type":"string"},"request":{"type":"string"},"test":{"type":"boolean"},"trackingId":{"type":"string"},"accountId":{"type":"string"},"failed_at":{"type":"string"},"failed_code":{"type":"string","enum":["SPAM_CONTENT","INVALID_SCHEDULE_FORMAT","SCHEDULE_RESOURCE_NOT_FOUND","MISSING_NOTIFICATION_TYPE","UNKNOWN"]},"failed_internal":{"type":"string"},"inapp_sent_at":{"type":"string"},"inapp_sent_after":{"type":"number"},"inapp_delivered_at":{"type":"string"},"inapp_delivered_after":{"type":"number"},"inapp_failed_at":{"type":"string"},"inapp_failed_code":{"type":"string","enum":["IN_APP_WEB_FAILED","UNKNOWN"]},"inapp_failed_internal":{"type":"string"},"mobile_push_failed_at":{"type":"string"},"mobile_push_failed_code":{"type":"string","enum":["NO_APN_CONFIG","NO_FCM_CONFIG","INVALID_APN_TOKEN","INVALID_FCM_TOKEN","UNKNOWN"]},"mobile_push_failed_token":{"type":"string"},"mobile_push_failed_internal":{"type":"string"},"mobile_push_sent_at":{"type":"string"},"mobile_push_sent_after":{"type":"number"},"mobile_push_sent_token":{"type":"string"},"mobile_push_delivered_at":{"type":"string"},"mobile_push_delivered_after":{"type":"number"},"email_sent_at":{"type":"string"},"email_sent_message_id":{"type":"string"},"email_sent_after":{"type":"number"},"email_preview":{"type":"string","description":"Bare `POST /email` may set this on the `email_sent` row so Logs Insights `latest(email_preview)` still resolves after delivered/opened rows. Sender / SQS consumer paths omit this field (unchanged behavior)."},"email_delivered_at":{"type":"string"},"email_delivered_recipients":{"type":"string"},"email_delivered_after":{"type":"number"},"email_delivered_webhook_res":{"type":"string"},"email_delivered_internal":{"type":"string"},"email_failed_at":{"type":"string"},"email_failed_code":{"type":"string","enum":["UNVERIFIED_SENDER","PERMANENT_GENERAL_BOUNCE","PERMANENT_NO_EMAIL_BOUNCE","PERMANENT_SUPPRESSED_BOUNCE","TRANSIENT_GENERAL_BOUNCE","TRANSIENT_MAILBOX_FULL_BOUNCE","TRANSIENT_MESSAGE_TOO_LARGE_BOUNCE","TRANSIENT_CONTENT_REJECTED_BOUNCE","TRANSIENT_ATTACHMENT_REJECTED_BOUNCE","UNDETERMINED_BOUNCE","COMPLAINT_ABUSE","COMPLAINT_AUTH","COMPLAINT_FRAUD","COMPLAINT_NOT_SPAM","COMPLAINT_OTHER","COMPLAINT_VIRUS","SUPPRESSED_COMPLAINT","SUPPRESSED_BOUNCE","DOMAIN_VERIFICATION_REQUIRED","MISSING_EMAIL_RECIPIENT","MISSING_EMAIL_SUBJECT","MISSING_EMAIL_HTML","NO_ADDRESS","USAGE_LIMIT","VERIFICATION_LIMIT","TEMPLATE_NOT_FOUND","NO_DEFAULT_TEMPLATE","SPAM_CONTENT","SMS_FREE_RESTRICTED"]},"email_failed_recipient":{"type":"string"},"email_failed_diagnostic_code":{"type":"string"},"email_failed_internal":{"type":"string"},"email_failed_webhook_res":{"type":"string"},"email_opened_at":{"type":"string"},"email_opened_user_agent":{"type":"string"},"email_opened_ip":{"type":"string"},"email_opened_webhook_res":{"type":"string"},"email_clicked_at":{"type":"string"},"email_clicked_user_agent":{"type":"string"},"email_clicked_ip":{"type":"string"},"email_clicked_link":{"type":"string"},"email_clicked_link_tags":{"type":"string"},"email_clicked_webhook_res":{"type":"string"},"email_inbound_at":{"type":"string","description":"When the message was accepted, ISO 8601. Log order and the 30-day resend window use this time."},"email_inbound_from":{"type":"string","description":"Sender email address."},"email_inbound_from_name":{"type":"string","description":"Sender display name, when the From header includes one."},"email_inbound_to":{"type":"string","description":"Comma-separated To header addresses. This is the header, not necessarily the Pingram inbox."},"email_inbound_cc":{"type":"string","description":"Comma-separated CC header addresses."},"email_inbound_bcc":{"type":"string","description":"Comma-separated BCC header addresses. Often empty because that header is stripped before delivery."},"email_inbound_reply_to":{"type":"string","description":"Reply-To header address."},"email_inbound_inbox":{"type":"string","description":"Address that received the mail. Same value as `matched.email` on the EMAIL_INBOUND webhook, including when that address was only in Cc or Bcc."},"email_inbound_to_name":{"type":"string","description":"Display name of `email_inbound_inbox` when the headers include one. Same value as `matched.name`. Omitted when that address has no display name."},"email_inbound_sent_at":{"type":"string","description":"Sender Date header, ISO 8601. Omitted when that header is missing or invalid."},"email_inbound_retry_key":{"type":"string","description":"Key used to resend this inbound email for 30 days."},"email_inbound_user_id":{"type":"string","description":"User id from the original notification when this mail is a reply to one."},"email_inbound_subject":{"type":"string","description":"Subject line."},"email_inbound_body_text":{"type":"string","description":"Plain-text body."},"email_inbound_body_html":{"type":"string","description":"HTML body. Inline images use `cid:` values that match attachment content IDs on the webhook payload."},"email_inbound_has_attachments":{"type":"boolean","description":"True when the message includes at least one attachment."},"email_inbound_attachment_count":{"type":"number","description":"Number of attachments. File bytes are not stored on this log."},"email_inbound_message_id":{"type":"string","description":"Message-ID header. Use it to thread later replies."},"email_inbound_in_reply_to":{"type":"string","description":"In-Reply-To header: the Message-ID this mail replies to."},"email_inbound_references":{"type":"string","description":"References header: the chain of Message-IDs in the thread."},"email_inbound_webhook_delivered":{"type":"boolean","description":"True when an EMAIL_INBOUND webhook endpoint returned a 2xx response."},"email_inbound_webhook_res":{"type":"string","description":"JSON delivery result for each EMAIL_INBOUND endpoint."},"email_inbound_resolution_type":{"type":"string","enum":["reply","builtin","custom"],"description":"How the inbox was matched: `reply` for a reply to a sent notification, `builtin` for a Pingram inbox, or `custom` for a custom domain."},"sms_inbound_at":{"type":"string"},"sms_inbound_from":{"type":"string"},"sms_inbound_to":{"type":"string","description":"Pingram number that received the inbound message."},"sms_inbound_text":{"type":"string"},"sms_inbound_webhook_delivered":{"type":"boolean"},"sms_inbound_webhook_res":{"type":"string"},"sms_inbound_media":{"type":"string","description":"Truncated JSON string of inbound MMS metadata when present."},"sms_replied_at":{"type":"string"},"sms_replied_to":{"type":"string"},"sms_replied_text":{"type":"string"},"sms_replied_segments":{"type":"number"},"sms_replied_encoding":{"type":"string"},"sms_unsubscribe_at":{"type":"string"},"sms_unsubscribe_from":{"type":"string"},"sms_unsubscribe_keyword":{"type":"string"},"sms_unsubscribe_webhook_delivered":{"type":"boolean"},"sms_unsubscribe_webhook_res":{"type":"string"},"sms_subscribe_at":{"type":"string"},"sms_subscribe_from":{"type":"string"},"sms_subscribe_keyword":{"type":"string"},"sms_subscribe_webhook_delivered":{"type":"boolean"},"sms_subscribe_webhook_res":{"type":"string"},"web_push_sent_token":{"type":"string"},"web_push_sent_at":{"type":"string"},"web_push_sent_after":{"type":"number"},"web_push_delivered_at":{"type":"string"},"web_push_delivered_after":{"type":"number"},"web_push_delivered_token":{"type":"string"},"web_push_delivered_internal":{"type":"string"},"web_push_failed_at":{"type":"string"},"web_push_failed_token":{"type":"string"},"web_push_failed_code":{"type":"string","enum":["UNSUBSCIRBED_OR_EXPIRED","UNKNOWN","NO_ADDRESS","USAGE_LIMIT","VERIFICATION_LIMIT","TEMPLATE_NOT_FOUND","NO_DEFAULT_TEMPLATE","SPAM_CONTENT","SMS_FREE_RESTRICTED"]},"web_push_failed_internal":{"type":"string"},"processed_at":{"type":"string"},"ignored":{"type":"string","enum":["THROTTLING","DEDUPLICATION","DISABLED_NOTIFICATION","ALL_CHANNELS_IGNORED"]},"scheduled_for":{"type":"string"},"user_id":{"type":"string"},"user_email":{"type":"string"},"user_number":{"type":"string"},"email_routing":{"type":"string","enum":["OFF","SEND","BATCH","IGNORE","SCHEDULE","THROTTLED","DEDUPLICATED"]},"email_routing_reason":{"type":"string","enum":["IGNORE_BY_PREFERENCES","IGNORE_BY_ENVIRONMENT","IGNORE_BY_DEFAULT_DELIVERY"]},"sms_routing":{"type":"string","enum":["OFF","SEND","BATCH","IGNORE","SCHEDULE","THROTTLED","DEDUPLICATED"]},"sms_routing_reason":{"type":"string","enum":["IGNORE_BY_PREFERENCES","IGNORE_BY_ENVIRONMENT","IGNORE_BY_DEFAULT_DELIVERY"]},"web_push_routing":{"type":"string","enum":["OFF","SEND","BATCH","IGNORE","SCHEDULE","THROTTLED","DEDUPLICATED"]},"web_push_routing_reason":{"type":"string","enum":["IGNORE_BY_PREFERENCES","IGNORE_BY_ENVIRONMENT","IGNORE_BY_DEFAULT_DELIVERY"]},"mobile_push_routing":{"type":"string","enum":["OFF","SEND","BATCH","IGNORE","SCHEDULE","THROTTLED","DEDUPLICATED"]},"mobile_push_routing_reason":{"type":"string","enum":["IGNORE_BY_PREFERENCES","IGNORE_BY_ENVIRONMENT","IGNORE_BY_DEFAULT_DELIVERY"]},"call_routing":{"type":"string","enum":["OFF","SEND","BATCH","IGNORE","SCHEDULE","THROTTLED","DEDUPLICATED"]},"call_routing_reason":{"type":"string","enum":["IGNORE_BY_PREFERENCES","IGNORE_BY_ENVIRONMENT","IGNORE_BY_DEFAULT_DELIVERY"]},"inapp_routing":{"type":"string","enum":["OFF","SEND","BATCH","IGNORE","SCHEDULE","THROTTLED","DEDUPLICATED"]},"inapp_routing_reason":{"type":"string","enum":["IGNORE_BY_PREFERENCES","IGNORE_BY_ENVIRONMENT","IGNORE_BY_DEFAULT_DELIVERY"]},"slack_routing":{"type":"string","enum":["OFF","SEND","BATCH","IGNORE","SCHEDULE","THROTTLED","DEDUPLICATED"]},"slack_routing_reason":{"type":"string","enum":["IGNORE_BY_PREFERENCES","IGNORE_BY_ENVIRONMENT","IGNORE_BY_DEFAULT_DELIVERY"]},"sms_preview":{"type":"string"},"call_preview":{"type":"string"},"web_push_preview":{"type":"string"},"mobile_push_preview":{"type":"string"},"slack_preview":{"type":"string"},"inapp_preview":{"type":"string"},"slack_sent_at":{"type":"string"},"slack_sent_after":{"type":"number"},"slack_delivered_at":{"type":"string"},"slack_delivered_after":{"type":"number"},"slack_delivered_internal":{"type":"string"},"slack_failed_at":{"type":"string"},"slack_failed_code":{"type":"string","enum":["CHANNEL_NOT_FOUND","NOT_IN_CHANNEL","CHANNEL_ARCHIVED","MESSAGE_TOO_LONG","NO_TEXT","RESTRICTED_ACTION","TOKEN_EXPIRED","INVALID_AUTH","UNKNOWN","NO_ADDRESS","USAGE_LIMIT","VERIFICATION_LIMIT","TEMPLATE_NOT_FOUND","NO_DEFAULT_TEMPLATE","SPAM_CONTENT","SMS_FREE_RESTRICTED"]},"slack_failed_internal":{"type":"string"},"call_sent_at":{"type":"string"},"call_sent_after":{"type":"number"},"call_sent_from":{"type":"string"},"call_delivered_at":{"type":"string"},"call_delivered_after":{"type":"number"},"call_delivered_code":{"type":"string","enum":["COMPLETED","BUSY","NO_ANSWER","UNKNOWN"]},"call_delivered_cost_internal":{"type":"number"},"call_delivered_cost":{"type":"number","description":"Same value as call_delivered_cost_internal (for API/external use)"},"call_failed_at":{"type":"string"},"call_failed_code":{"type":"string","enum":["13224","10002","21211","21215","21265","21610","21614","21612","30005","30006","30007","30008","30453","40001","40002","40010","40300","Unknown","MISSING_SMS_RECIPIENT","MISSING_SMS_MESSAGE","INVALID_PHONE_NUMBER","NO_ADDRESS","USAGE_LIMIT","VERIFICATION_LIMIT","TEMPLATE_NOT_FOUND","NO_DEFAULT_TEMPLATE","SPAM_CONTENT","SMS_FREE_RESTRICTED"]},"call_failed_internal":{"type":"string"},"sms_failed_at":{"type":"string"},"sms_failed_code":{"type":"string","enum":["13224","10002","21211","21215","21265","21610","21614","21612","30005","30006","30007","30008","30453","40001","40002","40010","40300","Unknown","MISSING_SMS_RECIPIENT","MISSING_SMS_MESSAGE","INVALID_PHONE_NUMBER","NO_ADDRESS","USAGE_LIMIT","VERIFICATION_LIMIT","TEMPLATE_NOT_FOUND","NO_DEFAULT_TEMPLATE","SPAM_CONTENT","SMS_FREE_RESTRICTED"]},"sms_failed_internal":{"type":"string"},"sms_sent_at":{"type":"string"},"sms_sent_after":{"type":"number"},"sms_sent_from":{"type":"string"},"sms_sent_carrier":{"type":"string"},"sms_sent_line_type":{"type":"string"},"sms_sent_encoding":{"type":"string"},"sms_sent_segments":{"type":"number"},"sms_sent_parts":{"type":"number"},"sms_sent_cost":{"type":"number"},"sms_sent_country":{"type":"string"},"sms_sent_messageId":{"type":"string","description":"Unique message ID from the SMS provider"},"sms_sent_mms":{"type":"boolean","description":"True when the send included MMS (`mediaUrls`)."},"sms_carrier_cost_internal":{"type":"number","description":"Actual carrier cost (internal)"},"sms_carrier_fee_internal":{"type":"number"},"sms_rate_internal":{"type":"number"},"sms_delivered_at":{"type":"string"},"sms_delivered_after":{"type":"number"},"sms_delivered_cost_internal":{"type":"number","description":"Actual delivery cost from carrier webhook (USD), for internal logging"},"schedule_updated_at":{"type":"string"},"schedule_updated_to":{"type":"string"},"schedule_deleted_at":{"type":"string"}},"required":["accountId","trackingId"]}}},"required":["logs"],"additionalProperties":false,"description":"Response type for GET /logs/{trackingIds} and POST /logs/bulk"},"LogsQueryResponse":{"type":"object","properties":{"queryId":{"type":"string"}},"required":["queryId"],"additionalProperties":false,"description":"Response type for POST /logs/query"},"LogsQueryResultResponse":{"type":"object","properties":{"status":{"type":"string"},"logs":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"received_at":{"type":"string"},"type":{"type":"string"},"envId":{"type":"string"},"clientId":{"type":"string"},"agent":{"type":"string"},"ip":{"type":"string"},"request":{"type":"string"},"test":{"type":"boolean"},"trackingId":{"type":"string"},"accountId":{"type":"string"},"failed_at":{"type":"string"},"failed_code":{"type":"string","enum":["SPAM_CONTENT","INVALID_SCHEDULE_FORMAT","SCHEDULE_RESOURCE_NOT_FOUND","MISSING_NOTIFICATION_TYPE","UNKNOWN"]},"failed_internal":{"type":"string"},"inapp_sent_at":{"type":"string"},"inapp_sent_after":{"type":"number"},"inapp_delivered_at":{"type":"string"},"inapp_delivered_after":{"type":"number"},"inapp_failed_at":{"type":"string"},"inapp_failed_code":{"type":"string","enum":["IN_APP_WEB_FAILED","UNKNOWN"]},"inapp_failed_internal":{"type":"string"},"mobile_push_failed_at":{"type":"string"},"mobile_push_failed_code":{"type":"string","enum":["NO_APN_CONFIG","NO_FCM_CONFIG","INVALID_APN_TOKEN","INVALID_FCM_TOKEN","UNKNOWN"]},"mobile_push_failed_token":{"type":"string"},"mobile_push_failed_internal":{"type":"string"},"mobile_push_sent_at":{"type":"string"},"mobile_push_sent_after":{"type":"number"},"mobile_push_sent_token":{"type":"string"},"mobile_push_delivered_at":{"type":"string"},"mobile_push_delivered_after":{"type":"number"},"email_sent_at":{"type":"string"},"email_sent_message_id":{"type":"string"},"email_sent_after":{"type":"number"},"email_preview":{"type":"string","description":"Bare `POST /email` may set this on the `email_sent` row so Logs Insights `latest(email_preview)` still resolves after delivered/opened rows. Sender / SQS consumer paths omit this field (unchanged behavior)."},"email_delivered_at":{"type":"string"},"email_delivered_recipients":{"type":"string"},"email_delivered_after":{"type":"number"},"email_delivered_webhook_res":{"type":"string"},"email_delivered_internal":{"type":"string"},"email_failed_at":{"type":"string"},"email_failed_code":{"type":"string","enum":["UNVERIFIED_SENDER","PERMANENT_GENERAL_BOUNCE","PERMANENT_NO_EMAIL_BOUNCE","PERMANENT_SUPPRESSED_BOUNCE","TRANSIENT_GENERAL_BOUNCE","TRANSIENT_MAILBOX_FULL_BOUNCE","TRANSIENT_MESSAGE_TOO_LARGE_BOUNCE","TRANSIENT_CONTENT_REJECTED_BOUNCE","TRANSIENT_ATTACHMENT_REJECTED_BOUNCE","UNDETERMINED_BOUNCE","COMPLAINT_ABUSE","COMPLAINT_AUTH","COMPLAINT_FRAUD","COMPLAINT_NOT_SPAM","COMPLAINT_OTHER","COMPLAINT_VIRUS","SUPPRESSED_COMPLAINT","SUPPRESSED_BOUNCE","DOMAIN_VERIFICATION_REQUIRED","MISSING_EMAIL_RECIPIENT","MISSING_EMAIL_SUBJECT","MISSING_EMAIL_HTML","NO_ADDRESS","USAGE_LIMIT","VERIFICATION_LIMIT","TEMPLATE_NOT_FOUND","NO_DEFAULT_TEMPLATE","SPAM_CONTENT","SMS_FREE_RESTRICTED"]},"email_failed_recipient":{"type":"string"},"email_failed_diagnostic_code":{"type":"string"},"email_failed_internal":{"type":"string"},"email_failed_webhook_res":{"type":"string"},"email_opened_at":{"type":"string"},"email_opened_user_agent":{"type":"string"},"email_opened_ip":{"type":"string"},"email_opened_webhook_res":{"type":"string"},"email_clicked_at":{"type":"string"},"email_clicked_user_agent":{"type":"string"},"email_clicked_ip":{"type":"string"},"email_clicked_link":{"type":"string"},"email_clicked_link_tags":{"type":"string"},"email_clicked_webhook_res":{"type":"string"},"email_inbound_at":{"type":"string","description":"When the message was accepted, ISO 8601. Log order and the 30-day resend window use this time."},"email_inbound_from":{"type":"string","description":"Sender email address."},"email_inbound_from_name":{"type":"string","description":"Sender display name, when the From header includes one."},"email_inbound_to":{"type":"string","description":"Comma-separated To header addresses. This is the header, not necessarily the Pingram inbox."},"email_inbound_cc":{"type":"string","description":"Comma-separated CC header addresses."},"email_inbound_bcc":{"type":"string","description":"Comma-separated BCC header addresses. Often empty because that header is stripped before delivery."},"email_inbound_reply_to":{"type":"string","description":"Reply-To header address."},"email_inbound_inbox":{"type":"string","description":"Address that received the mail. Same value as `matched.email` on the EMAIL_INBOUND webhook, including when that address was only in Cc or Bcc."},"email_inbound_to_name":{"type":"string","description":"Display name of `email_inbound_inbox` when the headers include one. Same value as `matched.name`. Omitted when that address has no display name."},"email_inbound_sent_at":{"type":"string","description":"Sender Date header, ISO 8601. Omitted when that header is missing or invalid."},"email_inbound_retry_key":{"type":"string","description":"Key used to resend this inbound email for 30 days."},"email_inbound_user_id":{"type":"string","description":"User id from the original notification when this mail is a reply to one."},"email_inbound_subject":{"type":"string","description":"Subject line."},"email_inbound_body_text":{"type":"string","description":"Plain-text body."},"email_inbound_body_html":{"type":"string","description":"HTML body. Inline images use `cid:` values that match attachment content IDs on the webhook payload."},"email_inbound_has_attachments":{"type":"boolean","description":"True when the message includes at least one attachment."},"email_inbound_attachment_count":{"type":"number","description":"Number of attachments. File bytes are not stored on this log."},"email_inbound_message_id":{"type":"string","description":"Message-ID header. Use it to thread later replies."},"email_inbound_in_reply_to":{"type":"string","description":"In-Reply-To header: the Message-ID this mail replies to."},"email_inbound_references":{"type":"string","description":"References header: the chain of Message-IDs in the thread."},"email_inbound_webhook_delivered":{"type":"boolean","description":"True when an EMAIL_INBOUND webhook endpoint returned a 2xx response."},"email_inbound_webhook_res":{"type":"string","description":"JSON delivery result for each EMAIL_INBOUND endpoint."},"email_inbound_resolution_type":{"type":"string","enum":["reply","builtin","custom"],"description":"How the inbox was matched: `reply` for a reply to a sent notification, `builtin` for a Pingram inbox, or `custom` for a custom domain."},"sms_inbound_at":{"type":"string"},"sms_inbound_from":{"type":"string"},"sms_inbound_to":{"type":"string","description":"Pingram number that received the inbound message."},"sms_inbound_text":{"type":"string"},"sms_inbound_webhook_delivered":{"type":"boolean"},"sms_inbound_webhook_res":{"type":"string"},"sms_inbound_media":{"type":"string","description":"Truncated JSON string of inbound MMS metadata when present."},"sms_replied_at":{"type":"string"},"sms_replied_to":{"type":"string"},"sms_replied_text":{"type":"string"},"sms_replied_segments":{"type":"number"},"sms_replied_encoding":{"type":"string"},"sms_unsubscribe_at":{"type":"string"},"sms_unsubscribe_from":{"type":"string"},"sms_unsubscribe_keyword":{"type":"string"},"sms_unsubscribe_webhook_delivered":{"type":"boolean"},"sms_unsubscribe_webhook_res":{"type":"string"},"sms_subscribe_at":{"type":"string"},"sms_subscribe_from":{"type":"string"},"sms_subscribe_keyword":{"type":"string"},"sms_subscribe_webhook_delivered":{"type":"boolean"},"sms_subscribe_webhook_res":{"type":"string"},"web_push_sent_token":{"type":"string"},"web_push_sent_at":{"type":"string"},"web_push_sent_after":{"type":"number"},"web_push_delivered_at":{"type":"string"},"web_push_delivered_after":{"type":"number"},"web_push_delivered_token":{"type":"string"},"web_push_delivered_internal":{"type":"string"},"web_push_failed_at":{"type":"string"},"web_push_failed_token":{"type":"string"},"web_push_failed_code":{"type":"string","enum":["UNSUBSCIRBED_OR_EXPIRED","UNKNOWN","NO_ADDRESS","USAGE_LIMIT","VERIFICATION_LIMIT","TEMPLATE_NOT_FOUND","NO_DEFAULT_TEMPLATE","SPAM_CONTENT","SMS_FREE_RESTRICTED"]},"web_push_failed_internal":{"type":"string"},"processed_at":{"type":"string"},"ignored":{"type":"string","enum":["THROTTLING","DEDUPLICATION","DISABLED_NOTIFICATION","ALL_CHANNELS_IGNORED"]},"scheduled_for":{"type":"string"},"user_id":{"type":"string"},"user_email":{"type":"string"},"user_number":{"type":"string"},"email_routing":{"type":"string","enum":["OFF","SEND","BATCH","IGNORE","SCHEDULE","THROTTLED","DEDUPLICATED"]},"email_routing_reason":{"type":"string","enum":["IGNORE_BY_PREFERENCES","IGNORE_BY_ENVIRONMENT","IGNORE_BY_DEFAULT_DELIVERY"]},"sms_routing":{"type":"string","enum":["OFF","SEND","BATCH","IGNORE","SCHEDULE","THROTTLED","DEDUPLICATED"]},"sms_routing_reason":{"type":"string","enum":["IGNORE_BY_PREFERENCES","IGNORE_BY_ENVIRONMENT","IGNORE_BY_DEFAULT_DELIVERY"]},"web_push_routing":{"type":"string","enum":["OFF","SEND","BATCH","IGNORE","SCHEDULE","THROTTLED","DEDUPLICATED"]},"web_push_routing_reason":{"type":"string","enum":["IGNORE_BY_PREFERENCES","IGNORE_BY_ENVIRONMENT","IGNORE_BY_DEFAULT_DELIVERY"]},"mobile_push_routing":{"type":"string","enum":["OFF","SEND","BATCH","IGNORE","SCHEDULE","THROTTLED","DEDUPLICATED"]},"mobile_push_routing_reason":{"type":"string","enum":["IGNORE_BY_PREFERENCES","IGNORE_BY_ENVIRONMENT","IGNORE_BY_DEFAULT_DELIVERY"]},"call_routing":{"type":"string","enum":["OFF","SEND","BATCH","IGNORE","SCHEDULE","THROTTLED","DEDUPLICATED"]},"call_routing_reason":{"type":"string","enum":["IGNORE_BY_PREFERENCES","IGNORE_BY_ENVIRONMENT","IGNORE_BY_DEFAULT_DELIVERY"]},"inapp_routing":{"type":"string","enum":["OFF","SEND","BATCH","IGNORE","SCHEDULE","THROTTLED","DEDUPLICATED"]},"inapp_routing_reason":{"type":"string","enum":["IGNORE_BY_PREFERENCES","IGNORE_BY_ENVIRONMENT","IGNORE_BY_DEFAULT_DELIVERY"]},"slack_routing":{"type":"string","enum":["OFF","SEND","BATCH","IGNORE","SCHEDULE","THROTTLED","DEDUPLICATED"]},"slack_routing_reason":{"type":"string","enum":["IGNORE_BY_PREFERENCES","IGNORE_BY_ENVIRONMENT","IGNORE_BY_DEFAULT_DELIVERY"]},"sms_preview":{"type":"string"},"call_preview":{"type":"string"},"web_push_preview":{"type":"string"},"mobile_push_preview":{"type":"string"},"slack_preview":{"type":"string"},"inapp_preview":{"type":"string"},"slack_sent_at":{"type":"string"},"slack_sent_after":{"type":"number"},"slack_delivered_at":{"type":"string"},"slack_delivered_after":{"type":"number"},"slack_delivered_internal":{"type":"string"},"slack_failed_at":{"type":"string"},"slack_failed_code":{"type":"string","enum":["CHANNEL_NOT_FOUND","NOT_IN_CHANNEL","CHANNEL_ARCHIVED","MESSAGE_TOO_LONG","NO_TEXT","RESTRICTED_ACTION","TOKEN_EXPIRED","INVALID_AUTH","UNKNOWN","NO_ADDRESS","USAGE_LIMIT","VERIFICATION_LIMIT","TEMPLATE_NOT_FOUND","NO_DEFAULT_TEMPLATE","SPAM_CONTENT","SMS_FREE_RESTRICTED"]},"slack_failed_internal":{"type":"string"},"call_sent_at":{"type":"string"},"call_sent_after":{"type":"number"},"call_sent_from":{"type":"string"},"call_delivered_at":{"type":"string"},"call_delivered_after":{"type":"number"},"call_delivered_code":{"type":"string","enum":["COMPLETED","BUSY","NO_ANSWER","UNKNOWN"]},"call_delivered_cost_internal":{"type":"number"},"call_delivered_cost":{"type":"number","description":"Same value as call_delivered_cost_internal (for API/external use)"},"call_failed_at":{"type":"string"},"call_failed_code":{"type":"string","enum":["13224","10002","21211","21215","21265","21610","21614","21612","30005","30006","30007","30008","30453","40001","40002","40010","40300","Unknown","MISSING_SMS_RECIPIENT","MISSING_SMS_MESSAGE","INVALID_PHONE_NUMBER","NO_ADDRESS","USAGE_LIMIT","VERIFICATION_LIMIT","TEMPLATE_NOT_FOUND","NO_DEFAULT_TEMPLATE","SPAM_CONTENT","SMS_FREE_RESTRICTED"]},"call_failed_internal":{"type":"string"},"sms_failed_at":{"type":"string"},"sms_failed_code":{"type":"string","enum":["13224","10002","21211","21215","21265","21610","21614","21612","30005","30006","30007","30008","30453","40001","40002","40010","40300","Unknown","MISSING_SMS_RECIPIENT","MISSING_SMS_MESSAGE","INVALID_PHONE_NUMBER","NO_ADDRESS","USAGE_LIMIT","VERIFICATION_LIMIT","TEMPLATE_NOT_FOUND","NO_DEFAULT_TEMPLATE","SPAM_CONTENT","SMS_FREE_RESTRICTED"]},"sms_failed_internal":{"type":"string"},"sms_sent_at":{"type":"string"},"sms_sent_after":{"type":"number"},"sms_sent_from":{"type":"string"},"sms_sent_carrier":{"type":"string"},"sms_sent_line_type":{"type":"string"},"sms_sent_encoding":{"type":"string"},"sms_sent_segments":{"type":"number"},"sms_sent_parts":{"type":"number"},"sms_sent_cost":{"type":"number"},"sms_sent_country":{"type":"string"},"sms_sent_messageId":{"type":"string","description":"Unique message ID from the SMS provider"},"sms_sent_mms":{"type":"boolean","description":"True when the send included MMS (`mediaUrls`)."},"sms_carrier_cost_internal":{"type":"number","description":"Actual carrier cost (internal)"},"sms_carrier_fee_internal":{"type":"number"},"sms_rate_internal":{"type":"number"},"sms_delivered_at":{"type":"string"},"sms_delivered_after":{"type":"number"},"sms_delivered_cost_internal":{"type":"number","description":"Actual delivery cost from carrier webhook (USD), for internal logging"},"schedule_updated_at":{"type":"string"},"schedule_updated_to":{"type":"string"},"schedule_deleted_at":{"type":"string"}},"required":["accountId","trackingId"]}},"message":{"type":"string"},"error":{"type":"string"}},"required":["status"],"additionalProperties":false,"description":"Response type for GET /logs/query/{queryId}"},"LogsRetentionResponse":{"type":"object","properties":{"retentionInDays":{"type":"number"}},"required":["retentionInDays"],"additionalProperties":false,"description":"Response type for GET /logs/retention"},"LogsTailResponse":{"type":"object","properties":{"logs":{"type":"array","items":{"type":"object","additionalProperties":false,"properties":{"received_at":{"type":"string"},"type":{"type":"string"},"envId":{"type":"string"},"clientId":{"type":"string"},"agent":{"type":"string"},"ip":{"type":"string"},"request":{"type":"string"},"test":{"type":"boolean"},"trackingId":{"type":"string"},"accountId":{"type":"string"},"failed_at":{"type":"string"},"failed_code":{"type":"string","enum":["SPAM_CONTENT","INVALID_SCHEDULE_FORMAT","SCHEDULE_RESOURCE_NOT_FOUND","MISSING_NOTIFICATION_TYPE","UNKNOWN"]},"failed_internal":{"type":"string"},"inapp_sent_at":{"type":"string"},"inapp_sent_after":{"type":"number"},"inapp_delivered_at":{"type":"string"},"inapp_delivered_after":{"type":"number"},"inapp_failed_at":{"type":"string"},"inapp_failed_code":{"type":"string","enum":["IN_APP_WEB_FAILED","UNKNOWN"]},"inapp_failed_internal":{"type":"string"},"mobile_push_failed_at":{"type":"string"},"mobile_push_failed_code":{"type":"string","enum":["NO_APN_CONFIG","NO_FCM_CONFIG","INVALID_APN_TOKEN","INVALID_FCM_TOKEN","UNKNOWN"]},"mobile_push_failed_token":{"type":"string"},"mobile_push_failed_internal":{"type":"string"},"mobile_push_sent_at":{"type":"string"},"mobile_push_sent_after":{"type":"number"},"mobile_push_sent_token":{"type":"string"},"mobile_push_delivered_at":{"type":"string"},"mobile_push_delivered_after":{"type":"number"},"email_sent_at":{"type":"string"},"email_sent_message_id":{"type":"string"},"email_sent_after":{"type":"number"},"email_preview":{"type":"string","description":"Bare `POST /email` may set this on the `email_sent` row so Logs Insights `latest(email_preview)` still resolves after delivered/opened rows. Sender / SQS consumer paths omit this field (unchanged behavior)."},"email_delivered_at":{"type":"string"},"email_delivered_recipients":{"type":"string"},"email_delivered_after":{"type":"number"},"email_delivered_webhook_res":{"type":"string"},"email_delivered_internal":{"type":"string"},"email_failed_at":{"type":"string"},"email_failed_code":{"type":"string","enum":["UNVERIFIED_SENDER","PERMANENT_GENERAL_BOUNCE","PERMANENT_NO_EMAIL_BOUNCE","PERMANENT_SUPPRESSED_BOUNCE","TRANSIENT_GENERAL_BOUNCE","TRANSIENT_MAILBOX_FULL_BOUNCE","TRANSIENT_MESSAGE_TOO_LARGE_BOUNCE","TRANSIENT_CONTENT_REJECTED_BOUNCE","TRANSIENT_ATTACHMENT_REJECTED_BOUNCE","UNDETERMINED_BOUNCE","COMPLAINT_ABUSE","COMPLAINT_AUTH","COMPLAINT_FRAUD","COMPLAINT_NOT_SPAM","COMPLAINT_OTHER","COMPLAINT_VIRUS","SUPPRESSED_COMPLAINT","SUPPRESSED_BOUNCE","DOMAIN_VERIFICATION_REQUIRED","MISSING_EMAIL_RECIPIENT","MISSING_EMAIL_SUBJECT","MISSING_EMAIL_HTML","NO_ADDRESS","USAGE_LIMIT","VERIFICATION_LIMIT","TEMPLATE_NOT_FOUND","NO_DEFAULT_TEMPLATE","SPAM_CONTENT","SMS_FREE_RESTRICTED"]},"email_failed_recipient":{"type":"string"},"email_failed_diagnostic_code":{"type":"string"},"email_failed_internal":{"type":"string"},"email_failed_webhook_res":{"type":"string"},"email_opened_at":{"type":"string"},"email_opened_user_agent":{"type":"string"},"email_opened_ip":{"type":"string"},"email_opened_webhook_res":{"type":"string"},"email_clicked_at":{"type":"string"},"email_clicked_user_agent":{"type":"string"},"email_clicked_ip":{"type":"string"},"email_clicked_link":{"type":"string"},"email_clicked_link_tags":{"type":"string"},"email_clicked_webhook_res":{"type":"string"},"email_inbound_at":{"type":"string","description":"When the message was accepted, ISO 8601. Log order and the 30-day resend window use this time."},"email_inbound_from":{"type":"string","description":"Sender email address."},"email_inbound_from_name":{"type":"string","description":"Sender display name, when the From header includes one."},"email_inbound_to":{"type":"string","description":"Comma-separated To header addresses. This is the header, not necessarily the Pingram inbox."},"email_inbound_cc":{"type":"string","description":"Comma-separated CC header addresses."},"email_inbound_bcc":{"type":"string","description":"Comma-separated BCC header addresses. Often empty because that header is stripped before delivery."},"email_inbound_reply_to":{"type":"string","description":"Reply-To header address."},"email_inbound_inbox":{"type":"string","description":"Address that received the mail. Same value as `matched.email` on the EMAIL_INBOUND webhook, including when that address was only in Cc or Bcc."},"email_inbound_to_name":{"type":"string","description":"Display name of `email_inbound_inbox` when the headers include one. Same value as `matched.name`. Omitted when that address has no display name."},"email_inbound_sent_at":{"type":"string","description":"Sender Date header, ISO 8601. Omitted when that header is missing or invalid."},"email_inbound_retry_key":{"type":"string","description":"Key used to resend this inbound email for 30 days."},"email_inbound_user_id":{"type":"string","description":"User id from the original notification when this mail is a reply to one."},"email_inbound_subject":{"type":"string","description":"Subject line."},"email_inbound_body_text":{"type":"string","description":"Plain-text body."},"email_inbound_body_html":{"type":"string","description":"HTML body. Inline images use `cid:` values that match attachment content IDs on the webhook payload."},"email_inbound_has_attachments":{"type":"boolean","description":"True when the message includes at least one attachment."},"email_inbound_attachment_count":{"type":"number","description":"Number of attachments. File bytes are not stored on this log."},"email_inbound_message_id":{"type":"string","description":"Message-ID header. Use it to thread later replies."},"email_inbound_in_reply_to":{"type":"string","description":"In-Reply-To header: the Message-ID this mail replies to."},"email_inbound_references":{"type":"string","description":"References header: the chain of Message-IDs in the thread."},"email_inbound_webhook_delivered":{"type":"boolean","description":"True when an EMAIL_INBOUND webhook endpoint returned a 2xx response."},"email_inbound_webhook_res":{"type":"string","description":"JSON delivery result for each EMAIL_INBOUND endpoint."},"email_inbound_resolution_type":{"type":"string","enum":["reply","builtin","custom"],"description":"How the inbox was matched: `reply` for a reply to a sent notification, `builtin` for a Pingram inbox, or `custom` for a custom domain."},"sms_inbound_at":{"type":"string"},"sms_inbound_from":{"type":"string"},"sms_inbound_to":{"type":"string","description":"Pingram number that received the inbound message."},"sms_inbound_text":{"type":"string"},"sms_inbound_webhook_delivered":{"type":"boolean"},"sms_inbound_webhook_res":{"type":"string"},"sms_inbound_media":{"type":"string","description":"Truncated JSON string of inbound MMS metadata when present."},"sms_replied_at":{"type":"string"},"sms_replied_to":{"type":"string"},"sms_replied_text":{"type":"string"},"sms_replied_segments":{"type":"number"},"sms_replied_encoding":{"type":"string"},"sms_unsubscribe_at":{"type":"string"},"sms_unsubscribe_from":{"type":"string"},"sms_unsubscribe_keyword":{"type":"string"},"sms_unsubscribe_webhook_delivered":{"type":"boolean"},"sms_unsubscribe_webhook_res":{"type":"string"},"sms_subscribe_at":{"type":"string"},"sms_subscribe_from":{"type":"string"},"sms_subscribe_keyword":{"type":"string"},"sms_subscribe_webhook_delivered":{"type":"boolean"},"sms_subscribe_webhook_res":{"type":"string"},"web_push_sent_token":{"type":"string"},"web_push_sent_at":{"type":"string"},"web_push_sent_after":{"type":"number"},"web_push_delivered_at":{"type":"string"},"web_push_delivered_after":{"type":"number"},"web_push_delivered_token":{"type":"string"},"web_push_delivered_internal":{"type":"string"},"web_push_failed_at":{"type":"string"},"web_push_failed_token":{"type":"string"},"web_push_failed_code":{"type":"string","enum":["UNSUBSCIRBED_OR_EXPIRED","UNKNOWN","NO_ADDRESS","USAGE_LIMIT","VERIFICATION_LIMIT","TEMPLATE_NOT_FOUND","NO_DEFAULT_TEMPLATE","SPAM_CONTENT","SMS_FREE_RESTRICTED"]},"web_push_failed_internal":{"type":"string"},"processed_at":{"type":"string"},"ignored":{"type":"string","enum":["THROTTLING","DEDUPLICATION","DISABLED_NOTIFICATION","ALL_CHANNELS_IGNORED"]},"scheduled_for":{"type":"string"},"user_id":{"type":"string"},"user_email":{"type":"string"},"user_number":{"type":"string"},"email_routing":{"type":"string","enum":["OFF","SEND","BATCH","IGNORE","SCHEDULE","THROTTLED","DEDUPLICATED"]},"email_routing_reason":{"type":"string","enum":["IGNORE_BY_PREFERENCES","IGNORE_BY_ENVIRONMENT","IGNORE_BY_DEFAULT_DELIVERY"]},"sms_routing":{"type":"string","enum":["OFF","SEND","BATCH","IGNORE","SCHEDULE","THROTTLED","DEDUPLICATED"]},"sms_routing_reason":{"type":"string","enum":["IGNORE_BY_PREFERENCES","IGNORE_BY_ENVIRONMENT","IGNORE_BY_DEFAULT_DELIVERY"]},"web_push_routing":{"type":"string","enum":["OFF","SEND","BATCH","IGNORE","SCHEDULE","THROTTLED","DEDUPLICATED"]},"web_push_routing_reason":{"type":"string","enum":["IGNORE_BY_PREFERENCES","IGNORE_BY_ENVIRONMENT","IGNORE_BY_DEFAULT_DELIVERY"]},"mobile_push_routing":{"type":"string","enum":["OFF","SEND","BATCH","IGNORE","SCHEDULE","THROTTLED","DEDUPLICATED"]},"mobile_push_routing_reason":{"type":"string","enum":["IGNORE_BY_PREFERENCES","IGNORE_BY_ENVIRONMENT","IGNORE_BY_DEFAULT_DELIVERY"]},"call_routing":{"type":"string","enum":["OFF","SEND","BATCH","IGNORE","SCHEDULE","THROTTLED","DEDUPLICATED"]},"call_routing_reason":{"type":"string","enum":["IGNORE_BY_PREFERENCES","IGNORE_BY_ENVIRONMENT","IGNORE_BY_DEFAULT_DELIVERY"]},"inapp_routing":{"type":"string","enum":["OFF","SEND","BATCH","IGNORE","SCHEDULE","THROTTLED","DEDUPLICATED"]},"inapp_routing_reason":{"type":"string","enum":["IGNORE_BY_PREFERENCES","IGNORE_BY_ENVIRONMENT","IGNORE_BY_DEFAULT_DELIVERY"]},"slack_routing":{"type":"string","enum":["OFF","SEND","BATCH","IGNORE","SCHEDULE","THROTTLED","DEDUPLICATED"]},"slack_routing_reason":{"type":"string","enum":["IGNORE_BY_PREFERENCES","IGNORE_BY_ENVIRONMENT","IGNORE_BY_DEFAULT_DELIVERY"]},"sms_preview":{"type":"string"},"call_preview":{"type":"string"},"web_push_preview":{"type":"string"},"mobile_push_preview":{"type":"string"},"slack_preview":{"type":"string"},"inapp_preview":{"type":"string"},"slack_sent_at":{"type":"string"},"slack_sent_after":{"type":"number"},"slack_delivered_at":{"type":"string"},"slack_delivered_after":{"type":"number"},"slack_delivered_internal":{"type":"string"},"slack_failed_at":{"type":"string"},"slack_failed_code":{"type":"string","enum":["CHANNEL_NOT_FOUND","NOT_IN_CHANNEL","CHANNEL_ARCHIVED","MESSAGE_TOO_LONG","NO_TEXT","RESTRICTED_ACTION","TOKEN_EXPIRED","INVALID_AUTH","UNKNOWN","NO_ADDRESS","USAGE_LIMIT","VERIFICATION_LIMIT","TEMPLATE_NOT_FOUND","NO_DEFAULT_TEMPLATE","SPAM_CONTENT","SMS_FREE_RESTRICTED"]},"slack_failed_internal":{"type":"string"},"call_sent_at":{"type":"string"},"call_sent_after":{"type":"number"},"call_sent_from":{"type":"string"},"call_delivered_at":{"type":"string"},"call_delivered_after":{"type":"number"},"call_delivered_code":{"type":"string","enum":["COMPLETED","BUSY","NO_ANSWER","UNKNOWN"]},"call_delivered_cost_internal":{"type":"number"},"call_delivered_cost":{"type":"number","description":"Same value as call_delivered_cost_internal (for API/external use)"},"call_failed_at":{"type":"string"},"call_failed_code":{"type":"string","enum":["13224","10002","21211","21215","21265","21610","21614","21612","30005","30006","30007","30008","30453","40001","40002","40010","40300","Unknown","MISSING_SMS_RECIPIENT","MISSING_SMS_MESSAGE","INVALID_PHONE_NUMBER","NO_ADDRESS","USAGE_LIMIT","VERIFICATION_LIMIT","TEMPLATE_NOT_FOUND","NO_DEFAULT_TEMPLATE","SPAM_CONTENT","SMS_FREE_RESTRICTED"]},"call_failed_internal":{"type":"string"},"sms_failed_at":{"type":"string"},"sms_failed_code":{"type":"string","enum":["13224","10002","21211","21215","21265","21610","21614","21612","30005","30006","30007","30008","30453","40001","40002","40010","40300","Unknown","MISSING_SMS_RECIPIENT","MISSING_SMS_MESSAGE","INVALID_PHONE_NUMBER","NO_ADDRESS","USAGE_LIMIT","VERIFICATION_LIMIT","TEMPLATE_NOT_FOUND","NO_DEFAULT_TEMPLATE","SPAM_CONTENT","SMS_FREE_RESTRICTED"]},"sms_failed_internal":{"type":"string"},"sms_sent_at":{"type":"string"},"sms_sent_after":{"type":"number"},"sms_sent_from":{"type":"string"},"sms_sent_carrier":{"type":"string"},"sms_sent_line_type":{"type":"string"},"sms_sent_encoding":{"type":"string"},"sms_sent_segments":{"type":"number"},"sms_sent_parts":{"type":"number"},"sms_sent_cost":{"type":"number"},"sms_sent_country":{"type":"string"},"sms_sent_messageId":{"type":"string","description":"Unique message ID from the SMS provider"},"sms_sent_mms":{"type":"boolean","description":"True when the send included MMS (`mediaUrls`)."},"sms_carrier_cost_internal":{"type":"number","description":"Actual carrier cost (internal)"},"sms_carrier_fee_internal":{"type":"number"},"sms_rate_internal":{"type":"number"},"sms_delivered_at":{"type":"string"},"sms_delivered_after":{"type":"number"},"sms_delivered_cost_internal":{"type":"number","description":"Actual delivery cost from carrier webhook (USD), for internal logging"},"schedule_updated_at":{"type":"string"},"schedule_updated_to":{"type":"string"},"schedule_deleted_at":{"type":"string"}},"required":["accountId","trackingId"]}}},"required":["logs"],"additionalProperties":false,"description":"Response type for GET /logs/tail"},"MemberInviteRequest":{"type":"object","properties":{"email":{"type":"string"},"role":{"type":"string"}},"required":["email"],"additionalProperties":false},"MemberUpdateRequest":{"type":"object","properties":{"role":{"type":"string","description":"Account role ('owner' or 'admin'), or a partner group role."}},"required":["role"],"additionalProperties":false},"MessageResponse":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false},"MFASetupRequest":{"type":"object","properties":{"type":{"type":"string","enum":["SOFTWARE_TOKEN_MFA"],"description":"MFA methods supported by the profile MFA API."}},"required":["type"],"additionalProperties":false},"MFASetupResponse":{"type":"object","properties":{"secretCode":{"type":"string"},"qrCodeUri":{"type":"string"},"session":{"type":"string"}},"required":["secretCode","qrCodeUri","session"],"additionalProperties":false},"MFAStatusResponse":{"type":"object","properties":{"enabled":{"type":"boolean"},"preferredMfa":{"type":"string","enum":["SOFTWARE_TOKEN_MFA"],"description":"MFA methods supported by the profile MFA API."},"available":{"type":"boolean","description":"Whether the account is on a paid plan required to enable MFA."}},"required":["enabled","available"],"additionalProperties":false},"MFAVerifyRequest":{"type":"object","properties":{"type":{"type":"string","enum":["SOFTWARE_TOKEN_MFA"],"description":"MFA methods supported by the profile MFA API."},"code":{"type":"string"},"session":{"type":"string"}},"required":["type","code","session"],"additionalProperties":false},"NoContent":{"type":"object","additionalProperties":{"not":{}},"description":"Use this type for 204 No Content responses. The middleware will return an empty body for 204 status codes. The OpenAPI codegen will generate a 204 response with no content."},"Notification":{"type":"object","properties":{"envId":{"type":"string"},"notificationId":{"type":"string"},"title":{"type":"string"},"channels":{"type":"array","items":{"$ref":"#/components/schemas/ChannelsEnum"}},"enabled":{"type":"boolean"},"deduplication":{"type":"object","properties":{"duration":{"type":"number"}},"required":["duration"],"additionalProperties":false},"throttling":{"type":"object","properties":{"max":{"type":"number"},"period":{"type":"number"},"unit":{"type":"string","enum":["seconds","minutes","hours","days","months","years"]},"forever":{"type":"boolean"},"scope":{"type":"array","minItems":2,"items":{"type":"string","enum":["userId","notificationId"]},"maxItems":2}},"required":["max","period","unit","forever","scope"],"additionalProperties":false},"retention":{"type":"number"},"options":{"type":"object","properties":{"EMAIL":{"type":"object","properties":{"defaultDeliveryOption":{"type":"string","enum":["off","instant","hourly","daily","weekly","monthly"]},"off":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"instant":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"hourly":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"daily":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"weekly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"day":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"monthly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"date":{"type":"string","enum":["first","last"]}},"required":["enabled"],"additionalProperties":false}},"required":["defaultDeliveryOption"],"additionalProperties":false},"INAPP_WEB":{"type":"object","properties":{"defaultDeliveryOption":{"type":"string","enum":["off","instant"]},"off":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"instant":{"type":"object","properties":{"enabled":{"type":"boolean"},"batching":{"type":"boolean"},"batchingKey":{"type":"string"},"batchingWindow":{"type":"number"}},"required":["enabled"],"additionalProperties":false}},"required":["defaultDeliveryOption"],"additionalProperties":false},"SMS":{"type":"object","properties":{"defaultDeliveryOption":{"type":"string","enum":["off","instant","hourly","daily","weekly","monthly"]},"off":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"instant":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"hourly":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"daily":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"weekly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"day":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"monthly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"date":{"type":"string","enum":["first","last"]}},"required":["enabled"],"additionalProperties":false}},"required":["defaultDeliveryOption"],"additionalProperties":false},"CALL":{"type":"object","properties":{"defaultDeliveryOption":{"type":"string","enum":["off","instant","hourly","daily","weekly","monthly"]},"off":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"instant":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"hourly":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"daily":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"weekly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"day":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"monthly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"date":{"type":"string","enum":["first","last"]}},"required":["enabled"],"additionalProperties":false}},"required":["defaultDeliveryOption"],"additionalProperties":false},"VOICE":{"type":"object","properties":{"defaultDeliveryOption":{"type":"string","enum":["off","instant","hourly","daily","weekly","monthly"]},"off":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"instant":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"hourly":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"daily":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"weekly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"day":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"monthly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"date":{"type":"string","enum":["first","last"]}},"required":["enabled"],"additionalProperties":false}},"required":["defaultDeliveryOption"],"additionalProperties":false},"PUSH":{"type":"object","properties":{"defaultDeliveryOption":{"type":"string","enum":["off","instant","hourly","daily","weekly","monthly"]},"off":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"instant":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"hourly":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"daily":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"weekly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"day":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"monthly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"date":{"type":"string","enum":["first","last"]}},"required":["enabled"],"additionalProperties":false}},"required":["defaultDeliveryOption"],"additionalProperties":false},"WEB_PUSH":{"type":"object","properties":{"defaultDeliveryOption":{"type":"string","enum":["off","instant","hourly","daily","weekly","monthly"]},"off":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"instant":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"hourly":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"daily":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"weekly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"day":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"monthly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"date":{"type":"string","enum":["first","last"]}},"required":["enabled"],"additionalProperties":false}},"required":["defaultDeliveryOption"],"additionalProperties":false},"SLACK":{"type":"object","properties":{"defaultDeliveryOption":{"type":"string","enum":["off","instant","hourly","daily","weekly","monthly"]},"off":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"instant":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"hourly":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"daily":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"weekly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"day":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"monthly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"date":{"type":"string","enum":["first","last"]}},"required":["enabled"],"additionalProperties":false}},"required":["defaultDeliveryOption"],"additionalProperties":false}},"additionalProperties":false},"templates":{"type":"array","items":{"type":"object","properties":{"channel":{"$ref":"#/components/schemas/ChannelsEnum"},"templateIds":{"type":"array","items":{"type":"string"}}},"required":["channel","templateIds"],"additionalProperties":false}}},"required":["envId","notificationId","title","channels","enabled"],"additionalProperties":false},"NotificationCreateRequest":{"type":"object","properties":{"notificationId":{"type":"string"},"title":{"type":"string"},"channels":{"type":"array","items":{"type":"string"}},"options":{"type":"object","properties":{"EMAIL":{"type":"object","properties":{"defaultDeliveryOption":{"type":"string","enum":["off","instant","hourly","daily","weekly","monthly"]},"off":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"instant":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"hourly":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"daily":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"weekly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"day":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"monthly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"date":{"type":"string","enum":["first","last"]}},"required":["enabled"],"additionalProperties":false}},"required":["defaultDeliveryOption"],"additionalProperties":false},"INAPP_WEB":{"type":"object","properties":{"defaultDeliveryOption":{"type":"string","enum":["off","instant"]},"off":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"instant":{"type":"object","properties":{"enabled":{"type":"boolean"},"batching":{"type":"boolean"},"batchingKey":{"type":"string"},"batchingWindow":{"type":"number"}},"required":["enabled"],"additionalProperties":false}},"required":["defaultDeliveryOption"],"additionalProperties":false},"SMS":{"type":"object","properties":{"defaultDeliveryOption":{"type":"string","enum":["off","instant","hourly","daily","weekly","monthly"]},"off":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"instant":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"hourly":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"daily":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"weekly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"day":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"monthly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"date":{"type":"string","enum":["first","last"]}},"required":["enabled"],"additionalProperties":false}},"required":["defaultDeliveryOption"],"additionalProperties":false},"CALL":{"type":"object","properties":{"defaultDeliveryOption":{"type":"string","enum":["off","instant","hourly","daily","weekly","monthly"]},"off":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"instant":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"hourly":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"daily":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"weekly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"day":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"monthly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"date":{"type":"string","enum":["first","last"]}},"required":["enabled"],"additionalProperties":false}},"required":["defaultDeliveryOption"],"additionalProperties":false},"VOICE":{"type":"object","properties":{"defaultDeliveryOption":{"type":"string","enum":["off","instant","hourly","daily","weekly","monthly"]},"off":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"instant":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"hourly":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"daily":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"weekly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"day":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"monthly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"date":{"type":"string","enum":["first","last"]}},"required":["enabled"],"additionalProperties":false}},"required":["defaultDeliveryOption"],"additionalProperties":false},"PUSH":{"type":"object","properties":{"defaultDeliveryOption":{"type":"string","enum":["off","instant","hourly","daily","weekly","monthly"]},"off":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"instant":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"hourly":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"daily":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"weekly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"day":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"monthly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"date":{"type":"string","enum":["first","last"]}},"required":["enabled"],"additionalProperties":false}},"required":["defaultDeliveryOption"],"additionalProperties":false},"WEB_PUSH":{"type":"object","properties":{"defaultDeliveryOption":{"type":"string","enum":["off","instant","hourly","daily","weekly","monthly"]},"off":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"instant":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"hourly":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"daily":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"weekly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"day":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"monthly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"date":{"type":"string","enum":["first","last"]}},"required":["enabled"],"additionalProperties":false}},"required":["defaultDeliveryOption"],"additionalProperties":false},"SLACK":{"type":"object","properties":{"defaultDeliveryOption":{"type":"string","enum":["off","instant","hourly","daily","weekly","monthly"]},"off":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"instant":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"hourly":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"daily":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"weekly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"day":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"monthly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"date":{"type":"string","enum":["first","last"]}},"required":["enabled"],"additionalProperties":false}},"required":["defaultDeliveryOption"],"additionalProperties":false}},"additionalProperties":false}},"required":["notificationId","title","channels"],"additionalProperties":false},"NotificationPatchRequest":{"type":"object","properties":{"title":{"type":"string"},"channels":{"type":"array","items":{"$ref":"#/components/schemas/ChannelsEnum"}},"enabled":{"type":"boolean"},"deduplication":{"properties":{"duration":{"type":"number"}},"required":["duration"],"additionalProperties":false,"type":"object","nullable":true},"throttling":{"properties":{"max":{"type":"number"},"period":{"type":"number"},"unit":{"type":"string","enum":["seconds","minutes","hours","days","months","years"]},"forever":{"type":"boolean"},"scope":{"type":"array","minItems":2,"items":{"type":"string","enum":["userId","notificationId"]},"maxItems":2}},"required":["max","period","unit","forever","scope"],"additionalProperties":false,"type":"object","nullable":true},"retention":{"type":"number","nullable":true},"options":{"type":"object","properties":{"EMAIL":{"type":"object","properties":{"defaultDeliveryOption":{"type":"string","enum":["off","instant","hourly","daily","weekly","monthly"]},"off":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"instant":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"hourly":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"daily":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"weekly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"day":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"monthly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"date":{"type":"string","enum":["first","last"]}},"required":["enabled"],"additionalProperties":false}},"required":["defaultDeliveryOption"],"additionalProperties":false},"INAPP_WEB":{"type":"object","properties":{"defaultDeliveryOption":{"type":"string","enum":["off","instant"]},"off":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"instant":{"type":"object","properties":{"enabled":{"type":"boolean"},"batching":{"type":"boolean"},"batchingKey":{"type":"string"},"batchingWindow":{"type":"number"}},"required":["enabled"],"additionalProperties":false}},"required":["defaultDeliveryOption"],"additionalProperties":false},"SMS":{"type":"object","properties":{"defaultDeliveryOption":{"type":"string","enum":["off","instant","hourly","daily","weekly","monthly"]},"off":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"instant":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"hourly":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"daily":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"weekly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"day":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"monthly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"date":{"type":"string","enum":["first","last"]}},"required":["enabled"],"additionalProperties":false}},"required":["defaultDeliveryOption"],"additionalProperties":false},"CALL":{"type":"object","properties":{"defaultDeliveryOption":{"type":"string","enum":["off","instant","hourly","daily","weekly","monthly"]},"off":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"instant":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"hourly":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"daily":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"weekly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"day":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"monthly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"date":{"type":"string","enum":["first","last"]}},"required":["enabled"],"additionalProperties":false}},"required":["defaultDeliveryOption"],"additionalProperties":false},"VOICE":{"type":"object","properties":{"defaultDeliveryOption":{"type":"string","enum":["off","instant","hourly","daily","weekly","monthly"]},"off":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"instant":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"hourly":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"daily":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"weekly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"day":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"monthly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"date":{"type":"string","enum":["first","last"]}},"required":["enabled"],"additionalProperties":false}},"required":["defaultDeliveryOption"],"additionalProperties":false},"PUSH":{"type":"object","properties":{"defaultDeliveryOption":{"type":"string","enum":["off","instant","hourly","daily","weekly","monthly"]},"off":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"instant":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"hourly":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"daily":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"weekly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"day":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"monthly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"date":{"type":"string","enum":["first","last"]}},"required":["enabled"],"additionalProperties":false}},"required":["defaultDeliveryOption"],"additionalProperties":false},"WEB_PUSH":{"type":"object","properties":{"defaultDeliveryOption":{"type":"string","enum":["off","instant","hourly","daily","weekly","monthly"]},"off":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"instant":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"hourly":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"daily":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"weekly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"day":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"monthly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"date":{"type":"string","enum":["first","last"]}},"required":["enabled"],"additionalProperties":false}},"required":["defaultDeliveryOption"],"additionalProperties":false},"SLACK":{"type":"object","properties":{"defaultDeliveryOption":{"type":"string","enum":["off","instant","hourly","daily","weekly","monthly"]},"off":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"instant":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"hourly":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"daily":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"weekly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"day":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"monthly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"date":{"type":"string","enum":["first","last"]}},"required":["enabled"],"additionalProperties":false}},"required":["defaultDeliveryOption"],"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false},"null":{"type":"null"},"OrderPhoneNumberRequest":{"type":"object","properties":{"phoneNumber":{"type":"string","description":"E.164 from search results"}},"required":["phoneNumber"],"additionalProperties":false},"OrderPhoneNumberResponse":{"type":"object","properties":{"orderId":{"type":"string"},"status":{"type":"string"},"phoneNumber":{"type":"string"}},"required":["orderId","status","phoneNumber"],"additionalProperties":false},"PasswordStatusResponse":{"type":"object","properties":{"hasPassword":{"type":"boolean","description":"False only when the account is still a social sign-in with no password."},"providers":{"type":"array","items":{"type":"string"},"description":"Linked social sign-in providers, such as Google."}},"required":["hasPassword","providers"],"additionalProperties":false,"description":"Whether the signed-in account has a password, and which social providers are linked."},"PaymentMethodSetup":{"type":"object","properties":{"sessionId":{"type":"string"},"url":{"type":"string"}},"required":["sessionId","url"],"additionalProperties":false,"description":"POST /account/payment-methods/setup response."},"PhoneVerifyConfirmRequest":{"type":"object","properties":{"code":{"type":"string"},"turnstileToken":{"type":"string"},"attribution":{"type":"object","additionalProperties":{"type":"string"},"description":"First-touch PostHog props from the client; attached to signup events."}},"required":["code","turnstileToken"],"additionalProperties":false},"PhoneVerifyConfirmResponse":{"type":"object","properties":{"verified":{"type":"boolean"},"accountId":{"type":"string"}},"required":["verified"],"additionalProperties":false},"PhoneVerifyStartRequest":{"type":"object","properties":{"phoneNumber":{"type":"string"},"turnstileToken":{"type":"string"}},"required":["phoneNumber","turnstileToken"],"additionalProperties":false},"PhoneVerifyStartResponse":{"type":"object","properties":{"started":{"type":"boolean"},"resendAfterSeconds":{"type":"number","description":"Seconds until this signup can request another code for the same number."}},"required":["started"],"additionalProperties":false},"PostEmailTestRequest":{"type":"object","properties":{"notificationId":{"type":"string"},"to":{"type":"string"},"subject":{"type":"string"},"html":{"type":"string"},"fromAddress":{"type":"string"},"fromName":{"type":"string"},"previewText":{"type":"string"}},"required":["notificationId","to","subject","html","fromAddress","fromName"],"additionalProperties":false},"PostEmailTestResponse":{"type":"object","properties":{"trackingId":{"type":"string"},"messages":{"type":"array","items":{"type":"string"}}},"required":["trackingId"],"additionalProperties":false},"PostSendersRequestBody":{"type":"object","properties":{"sender":{"type":"string"}},"required":["sender"],"additionalProperties":false},"PostUserRequest":{"type":"object","properties":{"id":{"type":"string","description":"Unique user identifier. Required."},"email":{"type":"string","description":"User's email address for email notifications."},"number":{"type":"string","description":"User's phone number for SMS/call notifications."},"pushTokens":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["FCM","APN"]},"token":{"type":"string"},"device":{"type":"object","properties":{"app_id":{"type":"string"},"ad_id":{"type":"string"},"device_id":{"type":"string"},"platform":{"type":"string"},"manufacturer":{"type":"string"},"model":{"type":"string"}},"required":["device_id"],"additionalProperties":false},"environment":{"type":"string","description":"used by APN to differentiate between sandbox and production builds (sandbox/undefined or production)","default":"undefined"}},"required":["type","token","device"],"additionalProperties":false},"description":"Mobile push tokens (FCM, APN) for push notifications."},"webPushTokens":{"type":"array","items":{"type":"object","properties":{"sub":{"type":"object","properties":{"endpoint":{"type":"string"},"keys":{"type":"object","properties":{"p256dh":{"type":"string"},"auth":{"type":"string"}},"required":["p256dh","auth"],"additionalProperties":false}},"required":["endpoint","keys"],"additionalProperties":false,"description":"Configuration for a Push Subscription. This can be obtained on the frontend by calling serviceWorkerRegistration.pushManager.subscribe(). The expected format is the same output as JSON.stringify'ing a PushSubscription in the browser."}},"required":["sub"],"additionalProperties":false},"description":"Web push subscription config from the browser."},"timezone":{"type":"string","description":"User's timezone (e.g. \"America/New_York\") for scheduling."},"slackChannel":{"type":"string","description":"The destination channel of slack notifications sent to this user. Can be either of the following:\n- Channel name, e.g. \"test\"\n- Channel name with # prefix, e.g. \"#test\"\n- Channel ID, e.g. \"C1234567890\"\n- User ID for DM, e.g. \"U1234567890\"\n- Username with @ prefix, e.g. \"@test\""},"slackToken":{"type":"object","additionalProperties":false,"properties":{"access_token":{"type":"string"},"app_id":{"type":"string"},"authed_user":{"type":"object","properties":{"access_token":{"type":"string"},"expires_in":{"type":"number"},"id":{"type":"string"},"refresh_token":{"type":"string"},"scope":{"type":"string"},"token_type":{"type":"string"}},"additionalProperties":false},"bot_user_id":{"type":"string"},"enterprise":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"additionalProperties":false},"error":{"type":"string"},"expires_in":{"type":"number"},"incoming_webhook":{"type":"object","properties":{"channel":{"type":"string"},"channel_id":{"type":"string"},"configuration_url":{"type":"string"},"url":{"type":"string"}},"additionalProperties":false},"is_enterprise_install":{"type":"boolean"},"needed":{"type":"string"},"ok":{"type":"boolean"},"provided":{"type":"string"},"refresh_token":{"type":"string"},"scope":{"type":"string"},"team":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"additionalProperties":false},"token_type":{"type":"string"},"warning":{"type":"string"},"response_metadata":{"type":"object","properties":{"warnings":{"type":"array","items":{"type":"string"}},"next_cursor":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"acceptedScopes":{"type":"array","items":{"type":"string"}},"retryAfter":{"type":"number"},"messages":{"type":"array","items":{"type":"string"}}},"additionalProperties":false}},"required":["ok"]},"properties":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},"description":"Custom key-value properties synced by the developer, used for audience segmentation (e.g. broadcast filters on user.properties.plan). Incremental identify calls shallow-merge keys (unset keys are preserved). Limits: max 25 keys, key length <= 64, string values <= 256 chars, serialized size <= 1KB."}},"additionalProperties":false},"ReleasePhoneNumberResponse":{"type":"object","properties":{"phoneNumber":{"type":"string"},"released":{"type":"boolean"},"releasedAt":{"type":"string","description":"ISO timestamp when the number was released"}},"required":["phoneNumber","released"],"additionalProperties":false},"ScheduleBroadcastRequest":{"type":"object","properties":{"sendAt":{"type":"string","description":"ISO datetime in the future."}},"required":["sendAt"],"additionalProperties":false},"SearchAvailablePhoneNumbersResponse":{"type":"object","properties":{"numbers":{"type":"array","items":{"type":"object","properties":{"phoneNumber":{"type":"string","description":"E.164"},"locality":{"type":"string"},"administrativeArea":{"type":"string"},"phoneNumberType":{"type":"string","description":"e.g. local, toll_free"},"features":{"type":"array","items":{"type":"string"},"description":"e.g. sms, voice, mms"},"monthlyPrice":{"type":"number","description":"Monthly cost in USD"}},"required":["phoneNumber","monthlyPrice"],"additionalProperties":false,"description":"One available number returned from search"}}},"required":["numbers"],"additionalProperties":false},"SendEmailApiResponse":{"anyOf":[{"type":"object","properties":{"trackingId":{"type":"string"},"messages":{"type":"array","items":{"type":"string"}}},"required":["trackingId","messages"],"additionalProperties":false,"description":"Success response for `POST /email`."},{"type":"object","properties":{"trackingId":{"type":"string"},"error":{"type":"object","properties":{"code":{"type":"string","description":"Machine-readable error code."},"message":{"type":"string","description":"Human-readable error message."},"fix":{"type":"string","description":"Actionable hint for fixing the error."}},"required":["code","message"],"additionalProperties":false,"description":"Error details for email send failures."}},"required":["trackingId","error"],"additionalProperties":false,"description":"Error response for `POST /email`."}],"description":"Response for `POST /email` - either success or error."},"SendEmailRequest":{"type":"object","properties":{"type":{"type":"string","description":"The notification type to send."},"to":{"type":"string","description":"The email address of the recipient."},"subject":{"type":"string","description":"The subject of the email."},"html":{"type":"string","description":"The HTML body of the email."},"fromName":{"type":"string","description":"The display name of the sender."},"fromAddress":{"type":"string","description":"The email address of the sender."},"previewText":{"type":"string","description":"The preview text of the email."},"replyToAddresses":{"type":"array","items":{"type":"string"},"description":"The reply-to addresses of the email."},"ccAddresses":{"type":"array","items":{"type":"string"},"description":"The CC addresses of the email."},"bccAddresses":{"type":"array","items":{"type":"string"},"description":"The BCC addresses of the email."},"openTracking":{"type":"boolean","description":"When false, this send does not record opens and no open pixel is added. Delivery, bounce, and complaint events are unchanged. Defaults to true."},"clickTracking":{"type":"boolean","description":"When false, links are left as written and clicks are not recorded. Delivery, bounce, and complaint events are unchanged. Defaults to true."},"attachments":{"type":"array","items":{"type":"object","properties":{"filename":{"type":"string"},"url":{"type":"string"}},"required":["filename","url"],"additionalProperties":false},"description":"URL-based file attachments. Up to 20 MB per file."},"schedule":{"type":"string","description":"The ISO 8601 datetime to schedule the email."}},"required":["type","to","subject","html"],"additionalProperties":false,"description":"Request body for `POST /email` (send email without a template)."},"SenderPostBody":{"type":"object","properties":{"notificationId":{"type":"string","deprecated":true,"description":"@deprecated Use type instead"},"user":{"type":"object","properties":{"id":{"type":"string","description":"Unique user identifier. Required."},"email":{"type":"string","description":"User's email address for email notifications."},"number":{"type":"string","description":"User's phone number for SMS/call notifications."},"pushTokens":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["FCM","APN"]},"token":{"type":"string"},"device":{"type":"object","properties":{"app_id":{"type":"string"},"ad_id":{"type":"string"},"device_id":{"type":"string"},"platform":{"type":"string"},"manufacturer":{"type":"string"},"model":{"type":"string"}},"required":["device_id"],"additionalProperties":false},"environment":{"type":"string","description":"used by APN to differentiate between sandbox and production builds (sandbox/undefined or production)","default":"undefined"}},"required":["type","token","device"],"additionalProperties":false},"description":"Mobile push tokens (FCM, APN) for push notifications."},"webPushTokens":{"type":"array","items":{"type":"object","properties":{"sub":{"type":"object","properties":{"endpoint":{"type":"string"},"keys":{"type":"object","properties":{"p256dh":{"type":"string"},"auth":{"type":"string"}},"required":["p256dh","auth"],"additionalProperties":false}},"required":["endpoint","keys"],"additionalProperties":false,"description":"Configuration for a Push Subscription. This can be obtained on the frontend by calling serviceWorkerRegistration.pushManager.subscribe(). The expected format is the same output as JSON.stringify'ing a PushSubscription in the browser."}},"required":["sub"],"additionalProperties":false},"description":"Web push subscription config from the browser."},"timezone":{"type":"string","description":"User's timezone (e.g. \"America/New_York\") for scheduling."},"slackChannel":{"type":"string","description":"The destination channel of slack notifications sent to this user. Can be either of the following:\n- Channel name, e.g. \"test\"\n- Channel name with # prefix, e.g. \"#test\"\n- Channel ID, e.g. \"C1234567890\"\n- User ID for DM, e.g. \"U1234567890\"\n- Username with @ prefix, e.g. \"@test\""},"slackToken":{"type":"object","additionalProperties":false,"properties":{"access_token":{"type":"string"},"app_id":{"type":"string"},"authed_user":{"type":"object","properties":{"access_token":{"type":"string"},"expires_in":{"type":"number"},"id":{"type":"string"},"refresh_token":{"type":"string"},"scope":{"type":"string"},"token_type":{"type":"string"}},"additionalProperties":false},"bot_user_id":{"type":"string"},"enterprise":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"additionalProperties":false},"error":{"type":"string"},"expires_in":{"type":"number"},"incoming_webhook":{"type":"object","properties":{"channel":{"type":"string"},"channel_id":{"type":"string"},"configuration_url":{"type":"string"},"url":{"type":"string"}},"additionalProperties":false},"is_enterprise_install":{"type":"boolean"},"needed":{"type":"string"},"ok":{"type":"boolean"},"provided":{"type":"string"},"refresh_token":{"type":"string"},"scope":{"type":"string"},"team":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"additionalProperties":false},"token_type":{"type":"string"},"warning":{"type":"string"},"response_metadata":{"type":"object","properties":{"warnings":{"type":"array","items":{"type":"string"}},"next_cursor":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"acceptedScopes":{"type":"array","items":{"type":"string"}},"retryAfter":{"type":"number"},"messages":{"type":"array","items":{"type":"string"}}},"additionalProperties":false}},"required":["ok"]},"properties":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},"description":"Custom key-value properties synced by the developer, used for audience segmentation (e.g. broadcast filters on user.properties.plan). Incremental identify calls shallow-merge keys (unset keys are preserved). Limits: max 25 keys, key length <= 64, string values <= 256 chars, serialized size <= 1KB."},"lastSeenTime":{"type":"string","description":"Last activity timestamp. Updated automatically. Read-only."},"updatedAt":{"type":"string","description":"Last update timestamp. Read-only."},"createdAt":{"type":"string","description":"Creation timestamp. Read-only."},"emailSuppressionStatus":{"type":"object","properties":{"reason":{"type":"string","enum":["Bounce","Complaint"]},"details":{"type":"object"}},"required":["reason","details"],"additionalProperties":false,"description":"Bounce or complaint status if email was suppressed. Read-only."}},"required":["id"],"additionalProperties":false,"deprecated":true},"mergeTags":{"type":"object","deprecated":true},"type":{"type":"string","description":"ID of the notification type (e.g. \"welcome_email\"). Creates a new notification if it does not exist."},"to":{"type":"object","properties":{"id":{"type":"string","description":"Unique user identifier. Required."},"email":{"type":"string","description":"User's email address for email notifications."},"number":{"type":"string","description":"User's phone number for SMS/call notifications."},"pushTokens":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["FCM","APN"]},"token":{"type":"string"},"device":{"type":"object","properties":{"app_id":{"type":"string"},"ad_id":{"type":"string"},"device_id":{"type":"string"},"platform":{"type":"string"},"manufacturer":{"type":"string"},"model":{"type":"string"}},"required":["device_id"],"additionalProperties":false},"environment":{"type":"string","description":"used by APN to differentiate between sandbox and production builds (sandbox/undefined or production)","default":"undefined"}},"required":["type","token","device"],"additionalProperties":false},"description":"Mobile push tokens (FCM, APN) for push notifications."},"webPushTokens":{"type":"array","items":{"type":"object","properties":{"sub":{"type":"object","properties":{"endpoint":{"type":"string"},"keys":{"type":"object","properties":{"p256dh":{"type":"string"},"auth":{"type":"string"}},"required":["p256dh","auth"],"additionalProperties":false}},"required":["endpoint","keys"],"additionalProperties":false,"description":"Configuration for a Push Subscription. This can be obtained on the frontend by calling serviceWorkerRegistration.pushManager.subscribe(). The expected format is the same output as JSON.stringify'ing a PushSubscription in the browser."}},"required":["sub"],"additionalProperties":false},"description":"Web push subscription config from the browser."},"timezone":{"type":"string","description":"User's timezone (e.g. \"America/New_York\") for scheduling."},"slackChannel":{"type":"string","description":"The destination channel of slack notifications sent to this user. Can be either of the following:\n- Channel name, e.g. \"test\"\n- Channel name with # prefix, e.g. \"#test\"\n- Channel ID, e.g. \"C1234567890\"\n- User ID for DM, e.g. \"U1234567890\"\n- Username with @ prefix, e.g. \"@test\""},"slackToken":{"type":"object","additionalProperties":false,"properties":{"access_token":{"type":"string"},"app_id":{"type":"string"},"authed_user":{"type":"object","properties":{"access_token":{"type":"string"},"expires_in":{"type":"number"},"id":{"type":"string"},"refresh_token":{"type":"string"},"scope":{"type":"string"},"token_type":{"type":"string"}},"additionalProperties":false},"bot_user_id":{"type":"string"},"enterprise":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"additionalProperties":false},"error":{"type":"string"},"expires_in":{"type":"number"},"incoming_webhook":{"type":"object","properties":{"channel":{"type":"string"},"channel_id":{"type":"string"},"configuration_url":{"type":"string"},"url":{"type":"string"}},"additionalProperties":false},"is_enterprise_install":{"type":"boolean"},"needed":{"type":"string"},"ok":{"type":"boolean"},"provided":{"type":"string"},"refresh_token":{"type":"string"},"scope":{"type":"string"},"team":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"additionalProperties":false},"token_type":{"type":"string"},"warning":{"type":"string"},"response_metadata":{"type":"object","properties":{"warnings":{"type":"array","items":{"type":"string"}},"next_cursor":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"acceptedScopes":{"type":"array","items":{"type":"string"}},"retryAfter":{"type":"number"},"messages":{"type":"array","items":{"type":"string"}}},"additionalProperties":false}},"required":["ok"]},"properties":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},"description":"Custom key-value properties synced by the developer, used for audience segmentation (e.g. broadcast filters on user.properties.plan). Incremental identify calls shallow-merge keys (unset keys are preserved). Limits: max 25 keys, key length <= 64, string values <= 256 chars, serialized size <= 1KB."},"lastSeenTime":{"type":"string","description":"Last activity timestamp. Updated automatically. Read-only."},"updatedAt":{"type":"string","description":"Last update timestamp. Read-only."},"createdAt":{"type":"string","description":"Creation timestamp. Read-only."},"emailSuppressionStatus":{"type":"object","properties":{"reason":{"type":"string","enum":["Bounce","Complaint"]},"details":{"type":"object"}},"required":["reason","details"],"additionalProperties":false,"description":"Bounce or complaint status if email was suppressed. Read-only."}},"additionalProperties":false,"description":"Recipient user. Provide `id`, `email`, or `number` to identify the user."},"forceChannels":{"type":"array","items":{"$ref":"#/components/schemas/ChannelsEnum"},"description":"Override which channels to send to (e.g. [\"EMAIL\", \"SMS\"]). Bypasses notification channel config."},"parameters":{"type":"object","additionalProperties":{},"description":"Key-value pairs for template merge tags. Replaces placeholders like {{firstName}} in templates."},"templateId":{"type":"string","description":"Specific template ID to use. If omitted, uses the default template for each channel."},"subNotificationId":{"type":"string","description":"Sub-notification identifier (e.g. for grouping related notifications)."},"options":{"type":"object","properties":{"email":{"type":"object","properties":{"replyToAddresses":{"type":"array","items":{"type":"string"},"description":"Reply-to addresses for the email."},"ccAddresses":{"type":"array","items":{"type":"string"},"description":"CC recipients."},"bccAddresses":{"type":"array","items":{"type":"string"},"description":"BCC recipients."},"fromAddress":{"type":"string","description":"Override sender email address."},"fromName":{"type":"string","description":"Override sender display name."},"openTracking":{"type":"boolean","description":"When false, this send does not record opens and no open pixel is added. Delivery, bounce, and complaint events are unchanged. Defaults to true."},"clickTracking":{"type":"boolean","description":"When false, links are left as written and clicks are not recorded. Delivery, bounce, and complaint events are unchanged. Defaults to true."},"attachments":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"filename":{"type":"string"},"url":{"type":"string"}},"required":["filename","url"],"additionalProperties":false},{"type":"object","properties":{"filename":{"type":"string"},"content":{"type":"string"},"contentType":{"type":"string"}},"required":["filename","content"],"additionalProperties":false}]},"description":"File attachments (by URL or inline base64 content). Inline `content`: ~4 MB raw per file (413 if exceeded). URL `url`: up to 20 MB per file."}},"additionalProperties":false,"description":"Email-specific overrides."},"apn":{"type":"object","properties":{"expiry":{"type":"number","description":"Seconds until the notification expires."},"priority":{"type":"number","description":"Delivery priority (10 = immediate, 5 = power-saving)."},"collapseId":{"type":"string","description":"Group notifications with the same ID (replaces previous)."},"threadId":{"type":"string","description":"Thread identifier for grouping notifications."},"badge":{"type":"number","description":"Badge count on app icon."},"sound":{"type":"string","description":"Sound file name."},"contentAvailable":{"type":"boolean","description":"Silent background notification (no alert)."}},"additionalProperties":false,"description":"Apple Push Notification (APN) overrides."},"fcm":{"type":"object","properties":{"android":{"type":"object","properties":{"collapseKey":{"type":"string","description":"Collapse key for grouping messages."},"priority":{"type":"string","enum":["high","normal"],"description":"Delivery priority."},"ttl":{"type":"number","description":"Time to live in seconds."},"restrictedPackageName":{"type":"string","description":"Restrict delivery to a specific package."}},"additionalProperties":false,"description":"Android-specific FCM options."}},"additionalProperties":false,"description":"Firebase Cloud Messaging (FCM) overrides."},"push":{"type":"object","properties":{"customData":{"type":"object","additionalProperties":{"type":"string"},"description":"Up to 3 custom string key-value pairs for deep linking. Included in both APN and FCM payloads."}},"additionalProperties":false,"description":"Cross-platform mobile push options (applied to both APN and FCM)."}},"additionalProperties":false,"description":"Per-channel overrides for send options (email, APN, FCM)."},"schedule":{"type":"string"},"email":{"type":"object","properties":{"subject":{"type":"string","description":"Email subject line."},"html":{"type":"string","description":"HTML body content."},"previewText":{"type":"string","description":"Preview/snippet text shown in inbox."},"senderName":{"type":"string","description":"Display name of sender."},"senderEmail":{"type":"string","description":"Sender email address."}},"required":["subject","html"],"additionalProperties":false,"description":"Inline email content (subject, html). Use when not using templates."},"inapp":{"type":"object","properties":{"title":{"type":"string","description":"Notification title."},"url":{"type":"string","description":"URL to open when clicked."},"image":{"type":"string","description":"Image URL."}},"required":["title"],"additionalProperties":false,"description":"Inline in-app content (title, url, image)."},"sms":{"type":"object","properties":{"message":{"type":"string","description":"SMS/MMS body text."},"mediaUrls":{"type":"array","items":{"type":"string"},"description":"Public HTTPS URLs of media to attach (MMS). Carriers fetch these via GET. Total size limits apply per provider."},"autoReply":{"type":"object","properties":{"message":{"type":"string","deprecated":true,"description":"@deprecated Ignored. SMS auto-reply is no longer available. Replacing with SMS_INBOUND: handle that webhook and send your own reply."}},"required":["message"],"additionalProperties":false,"deprecated":true,"description":"@deprecated Ignored. SMS auto-reply is no longer available. Replacing with SMS_INBOUND: handle that webhook and send your own reply."},"from":{"type":"string","description":"Override the sender phone number. Must be a verified number on your account."}},"additionalProperties":false,"description":"Inline SMS content (message, from, mediaUrls)."},"call":{"type":"object","properties":{"message":{"type":"string","description":"Text to speak (TTS)."}},"required":["message"],"additionalProperties":false,"description":"Inline call content (message)."},"web_push":{"type":"object","properties":{"title":{"type":"string","description":"Notification title."},"message":{"type":"string","description":"Body text."},"icon":{"type":"string","description":"Icon URL."},"url":{"type":"string","description":"URL to open when clicked."}},"required":["title","message"],"additionalProperties":false,"description":"Inline web push content (title, message, icon, url)."},"mobile_push":{"type":"object","properties":{"title":{"type":"string","description":"Notification title."},"message":{"type":"string","description":"Body text."}},"required":["title","message"],"additionalProperties":false,"description":"Inline mobile push content (title, message)."},"slack":{"type":"object","properties":{"text":{"type":"string","description":"Fallback plain text (required when using blocks)."},"blocks":{"type":"array","items":{"type":"object","additionalProperties":{}},"description":"Slack Block Kit blocks."},"username":{"type":"string","description":"Override bot username."},"icon":{"type":"string","description":"Icon: emoji (e.g. \":smile:\") or URL. Default: bot's icon."},"thread_ts":{"type":"string","description":"Parent message `ts` to post in a thread."},"reply_broadcast":{"type":"boolean","description":"When true with thread_ts, broadcasts reply to channel. Default: false."},"parse":{"type":"string","enum":["full","none"],"description":"URL parsing: \"full\" (clickable links) or \"none\". Default: \"none\"."},"link_names":{"type":"boolean","description":"Convert channel and username refs to Slack links. Default: false."},"mrkdwn":{"type":"boolean","description":"Enable Slack markup (*bold*, _italic_, `code`). Default: true."},"unfurl_links":{"type":"boolean","description":"Unfurl link previews. Default: true."},"unfurl_media":{"type":"boolean","description":"Unfurl media previews. Default: true."},"metadata":{"type":"object","additionalProperties":false,"properties":{"entities":{"type":"array","items":{"type":"object","properties":{"entity_type":{"type":"string","description":"Entity type (e.g., 'slack#/entities/task', 'slack#/entities/file')."},"entity_payload":{"type":"object","additionalProperties":{},"description":"Schema for the given entity type."},"external_ref":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string"}},"required":["id"],"additionalProperties":false,"description":"Reference used to identify an entity within the developer's system."},"url":{"type":"string","description":"URL used to identify an entity within the developer's system."},"app_unfurl_url":{"type":"string","description":"The exact URL posted in the source message. Required in metadata passed to `chat.unfurl`."}},"required":["entity_type","entity_payload","external_ref","url"],"additionalProperties":false},"description":"An array of work object entities."},"event_type":{"type":"string","description":"A human readable alphanumeric string representing your application's metadata event."},"event_payload":{"type":"object","additionalProperties":{},"description":"A free-form object containing whatever data your application wishes to attach to messages."}},"description":"Slack message metadata with optional work object entities.\nCombines standard Slack message metadata fields with an array of entity objects."}},"required":["text"],"additionalProperties":false,"description":"Inline Slack content (text, blocks, etc.)."}},"additionalProperties":false},"SenderPostResponse":{"type":"object","properties":{"trackingId":{"type":"string"},"messages":{"type":"array","items":{"type":"string"}}},"required":["trackingId","messages"],"additionalProperties":false},"SendSmsRequest":{"type":"object","properties":{"type":{"type":"string","description":"The notification type to send."},"to":{"type":"string","description":"The phone number of the recipient."},"message":{"type":"string","description":"The message of the SMS or MMS notification. Optional when `mediaUrls` is provided."},"mediaUrls":{"type":"array","items":{"type":"string"},"description":"Public HTTPS URLs of media to attach (MMS)."},"schedule":{"type":"string","description":"The ISO 8601 datetime to schedule the SMS notification."},"from":{"type":"string","description":"Override the sender phone number. Must be a dedicated number on your Pingram account."}},"required":["type","to"],"additionalProperties":false,"description":"Request body for `POST /sms` (send SMS or MMS without a template)."},"SendSmsResponse":{"anyOf":[{"type":"object","properties":{"trackingId":{"type":"string"},"messages":{"type":"array","items":{"type":"string"}}},"required":["trackingId","messages"],"additionalProperties":false,"description":"Success response for `POST /sms`."},{"type":"object","properties":{"trackingId":{"type":"string"},"error":{"type":"object","properties":{"code":{"type":"string","description":"Machine-readable error code."},"message":{"type":"string","description":"Human-readable error message."},"fix":{"type":"string","description":"Actionable hint for fixing the error."}},"required":["code","message"],"additionalProperties":false,"description":"Error details for SMS send failures."}},"required":["trackingId","error"],"additionalProperties":false,"description":"Error response for `POST /sms`."}],"description":"Response for `POST /sms` - either success or error."},"SetDefaultTemplateRequest":{"type":"object","properties":{"templateId":{"type":"string"},"modes":{"type":"array","items":{"type":"string","enum":["instant","hourly","daily","weekly","monthly"]}}},"required":["templateId","modes"],"additionalProperties":false},"SignInUsernameRequest":{"type":"object","properties":{"email":{"type":"string"}},"required":["email"],"additionalProperties":false},"SignInUsernameResponse":{"type":"object","properties":{"username":{"type":"string"}},"required":["username"],"additionalProperties":false,"description":"Sign-in username to pass to sign-in and password reset."},"SignOutRequest":{"type":"object","properties":{"refreshToken":{"type":"string"}},"required":["refreshToken"],"additionalProperties":false,"description":"This browser's refresh token, revoked on dashboard sign-out."},"SlackConnectInviteResponse":{"type":"object","properties":{"channelId":{"type":"string"},"channelName":{"type":"string"}},"required":["channelId","channelName"],"additionalProperties":false},"SlackInteractivityResponse":{"type":"object","properties":{"received":{"type":"boolean"}},"required":["received"],"additionalProperties":false,"description":"Response body type for Slack interactivity webhook acknowledgment"},"SmsComplianceCountriesResponse":{"type":"object","properties":{"countries":{"type":"array","items":{"type":"object","properties":{"country":{"type":"string"},"addedAt":{"type":"string"},"addedBy":{"type":"string","description":"Who added the country. `system` when the app added it, `api` when an API key added it; otherwise the user id."},"senderIdEnabled":{"type":"boolean","description":"True when the account Sender ID can be used to send to this country."}},"required":["country","addedAt","addedBy","senderIdEnabled"],"additionalProperties":false}}},"required":["countries"],"additionalProperties":false},"SmsComplianceCountry":{"type":"object","properties":{"country":{"type":"string"},"addedAt":{"type":"string"},"addedBy":{"type":"string","description":"Who added the country. `system` when the app added it, `api` when an API key added it; otherwise the user id."},"senderIdEnabled":{"type":"boolean","description":"True when the account Sender ID can be used to send to this country."}},"required":["country","addedAt","addedBy","senderIdEnabled"],"additionalProperties":false},"SmsComplianceCountryCreateRequest":{"type":"object","properties":{"country":{"type":"string"},"addedBy":{"type":"string","enum":["system"],"description":"Pass `system` when the dashboard persisted the country itself, such as a deep link. Omit it when the user picked the country; the server stores their user id."}},"required":["country"],"additionalProperties":false},"SmsLocalNumberRegistrationAdmin":{"type":"object","properties":{"accountId":{"type":"string"},"country":{"type":"string","enum":["GB","IL"],"description":"GB and IL local-number registration."},"kind":{"type":"string","enum":["local_number"]},"registrationType":{"type":"string","enum":["personal","business"],"description":"Whether this local number is registered to a person or a business.\n- personal: an individual. firstName and lastName are that person.\n- business: a company. firstName and lastName are the authorized representative."},"status":{"type":"string","enum":["not_started","in_progress","pending_review","approved","rejected","info_needed"],"description":"Pingram-side 10DLC registration workflow status (brand or campaign).\n- not_started: no customer submission yet\n- pending_review: customer submitted; Pingram has not submitted to carriers\n- in_progress: submitted for carrier review\n- approved | rejected | info_needed: review outcome"},"fields":{"type":"object","properties":{"firstName":{"type":"string","description":"First name. For a business registration, the authorized representative."},"lastName":{"type":"string","description":"Last name. For a business registration, the authorized representative."},"contactPhone":{"type":"string","description":"Contact phone number."},"street":{"type":"string","description":"Street address, including the building number and street name. An IL registration also includes the apartment or suite."},"city":{"type":"string","description":"City."},"postalCode":{"type":"string","description":"Postal or ZIP code."},"buildingNumber":{"type":"string","description":"Building number when it is sent separately from the street address."},"state":{"type":"string","description":"State or province. Required for an IL registration."},"companyName":{"type":"string","description":"Company name. Required for a business registration."},"companyWebsite":{"type":"string","description":"Company website, including https://. Required for a GB business registration."},"businessUseCase":{"type":"string","description":"How this number will be used. Required. A personal registration describes the inbound line, such as appointment reminders or two-factor authentication codes. A business registration describes messages sent to people who opted in, such as appointment reminders or delivery updates."},"subAllocated":{"type":"boolean","description":"True when someone else, such as a client, will use the number. False when you or your business will use it."},"subAllocatedParty":{"type":"string","description":"Name of the person or business who will use the number. Required when subAllocated is true."},"addressCountry":{"type":"string","description":"Country of the address, as a country name or an ISO 3166-1 alpha-2 code. Required for an IL registration, which can use an address outside Israel. A GB registration uses a United Kingdom address and does not send this field."}},"required":["firstName","lastName","contactPhone","street","city","postalCode"],"additionalProperties":false},"documents":{"type":"array","items":{"type":"object","properties":{"docKind":{"type":"string","enum":["passport_or_id","company_registration_certificate","utility_bill","business_registration_certificate","proof_of_address"],"description":"Which document this is.\n- passport_or_id: GB personal, with utility_bill.\n- utility_bill: needed for GB registration; must be less than 3 months old.\n- company_registration_certificate: GB business, with utility_bill.\n- proof_of_address: needed for IL registration; must be less than 3 months old.\n- business_registration_certificate: IL business, with proof_of_address."},"fileName":{"type":"string"},"url":{"type":"string","description":"Short-lived presigned GET URL for the stored document."}},"required":["docKind","fileName","url"],"additionalProperties":false,"description":"One submitted document with a short-lived link for admin review."}},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"submittedAt":{"type":"string"},"requirementGroupId":{"type":"string"},"requirementStatus":{"type":"string"},"addressId":{"type":"string"},"submittedToProviderAt":{"type":"string"}},"required":["accountId","country","kind","registrationType","status","fields","documents","createdAt","updatedAt","submittedAt"],"additionalProperties":false,"description":"Admin view of a local-number registration, including document links."},"SmsLocalNumberSubmitResponse":{"type":"object","properties":{"mock":{"type":"boolean"},"submitted":{"type":"boolean"},"country":{"type":"string","enum":["GB","IL"],"description":"GB and IL local-number registration."},"status":{"type":"string","enum":["not_started","in_progress","pending_review","approved","rejected","info_needed"],"description":"Pingram-side 10DLC registration workflow status (brand or campaign).\n- not_started: no customer submission yet\n- pending_review: customer submitted; Pingram has not submitted to carriers\n- in_progress: submitted for carrier review\n- approved | rejected | info_needed: review outcome"},"requirementGroupId":{"type":"string"},"requirementStatus":{"type":"string"},"slots":{"type":"array","items":{"type":"object","properties":{"requirementId":{"type":"string"},"name":{"type":"string"},"fieldType":{"type":"string"},"kind":{"type":"string"},"optional":{"type":"boolean"},"ready":{"type":"boolean"},"source":{"type":"string"},"valuePreview":{"type":"string"},"missingReason":{"type":"string"}},"required":["requirementId","name","fieldType","kind","optional","ready","source","valuePreview"],"additionalProperties":false}},"questions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["use_case","sub_allocation"]},"prompt":{"type":"string"},"needed":{"type":"boolean"}},"required":["id","prompt","needed"],"additionalProperties":false}}},"required":["mock","submitted","country","status","slots","questions"],"additionalProperties":false,"description":"Result of submitting a local-number registration to the carrier."},"SmsRegistration":{"type":"object","properties":{"country":{"type":"string","description":"ISO 3166-1 alpha-2 destination country."},"kind":{"type":"string","enum":["a2p10dlc","local-number","sender-id"],"description":"Kind segment of /registrations/{country}/{kind}."},"a2p10dlc":{"type":"object","additionalProperties":false,"properties":{"campaignDescription":{"type":"string","description":"Summary of what this campaign sends and why, including audience and typical message content. Required before carrier submission."},"campaignSample1":{"type":"string","description":"Example SMS that represents actual campaign traffic. Required before carrier submission. Should match the use case and typically identify the brand and include STOP/HELP language."},"campaignSample2":{"type":"string","description":"Second example SMS. Required before carrier submission. Required for MARKETING and MIXED use cases."},"campaignSample3":{"type":"string","description":"Optional third example SMS."},"campaignSample4":{"type":"string","description":"Optional fourth example SMS."},"campaignMessageFlow":{"type":"string","description":"How recipients opt in (for example website form, checkout, or keyword). Describe the call-to-action and where consent is collected. Required before carrier submission."},"campaignOptinKeywords":{"type":"string","description":"Extra opt-in keywords as a comma-separated list. START is always included."},"campaignOptinMessage":{"type":"string","description":"Auto-reply sent when a recipient opts in. Required before carrier submission. Should confirm the subscription, mention message frequency, and include STOP and HELP instructions."},"campaignOptoutKeywords":{"type":"string","description":"Extra opt-out keywords as a comma-separated list. STOP is always included."},"campaignOptoutMessage":{"type":"string","description":"Auto-reply sent when a recipient opts out. Required before carrier submission. Should confirm they will receive no further messages."},"campaignHelpKeywords":{"type":"string","description":"Extra help keywords as a comma-separated list. HELP is always included."},"campaignHelpMessage":{"type":"string","description":"Auto-reply sent when a recipient texts a help keyword. Required before carrier submission. Should include a support contact (email and/or phone)."},"campaignEmbeddedLink":{"type":"boolean","description":"Whether campaign messages include URLs."},"campaignEmbeddedLinkUrl":{"type":"string","description":"Sample URL that appears in messages. Provide when campaignEmbeddedLink is true."},"campaignEmbeddedPhone":{"type":"boolean","description":"Whether campaign messages include phone numbers."},"campaignAgeGated":{"type":"boolean","description":"Whether campaign content is age-restricted (18+)."},"campaignDirectLending":{"type":"boolean","description":"Whether the campaign relates to direct lending or loan products."},"campaignPrivacyPolicyLink":{"type":"string","description":"Public URL of the privacy policy that covers this SMS program."},"campaignTermsAndConditionsLink":{"type":"string","description":"Public URL of the terms and conditions that cover this SMS program."},"campaignUsecase":{"type":"string","description":"10DLC campaign use case submitted to carriers. Required before carrier submission. One of 2FA, ACCOUNT_NOTIFICATION, CUSTOMER_CARE, DELIVERY_NOTIFICATION, FRAUD_ALERT, MARKETING, MIXED, POLLING_VOTING, PUBLIC_SERVICE_ANNOUNCEMENT, or SECURITY_ALERT. For MIXED, append comma-separated sub-use cases after MIXED (sub-use cases cannot include MIXED), for example MIXED,2FA,ACCOUNT_NOTIFICATION."},"accountId":{"type":"string"},"scenarioId":{"type":"string"},"businessType":{"type":"string"},"legalName":{"type":"string","description":"Official registered legal business name. For SOLE_PROPRIETOR, may be a DBA or trade name."},"displayName":{"type":"string","description":"Public brand name shown to recipients and carriers."},"firstName":{"type":"string","description":"Legal first name of the sole proprietor. Present when businessType is SOLE_PROPRIETOR."},"lastName":{"type":"string","description":"Legal last name of the sole proprietor. Present when businessType is SOLE_PROPRIETOR."},"taxId":{"type":"string","description":"For US companies (country US): 9-digit EIN (Employer Identification Number). For Canada (country CA): 9-digit BN (Business Number). For other countries: national business tax identifier. Omitted when businessType is SOLE_PROPRIETOR."},"website":{"type":"string","description":"Public website for the brand."},"country":{"type":"string","description":"ISO 3166-1 alpha-2 country of incorporation (for example US or CA)."},"street":{"type":"string","description":"Street address that matches official tax registration."},"city":{"type":"string","description":"City that matches official tax registration."},"state":{"type":"string","description":"State (US) or province (CA) that matches official tax registration."},"postalCode":{"type":"string","description":"ZIP code (US) or postal code (CA) that matches official tax registration."},"fullAddress":{"type":"string","description":"Legacy records only; new submissions use structured address fields."},"complianceContactEmail":{"type":"string","description":"Email for the 10DLC compliance contact."},"complianceContactPhone":{"type":"string","description":"Phone number for the 10DLC compliance contact."},"brandStatus":{"type":"string","enum":["not_started","in_progress","pending_review","approved","rejected","info_needed"],"description":"Pingram-side 10DLC registration workflow status (brand or campaign).\n- not_started: no customer submission yet\n- pending_review: customer submitted; Pingram has not submitted to carriers\n- in_progress: submitted for carrier review\n- approved | rejected | info_needed: review outcome"},"campaignStatus":{"type":"string","enum":["not_started","in_progress","pending_review","approved","rejected","info_needed"],"description":"Pingram-side 10DLC registration workflow status (brand or campaign).\n- not_started: no customer submission yet\n- pending_review: customer submitted; Pingram has not submitted to carriers\n- in_progress: submitted for carrier review\n- approved | rejected | info_needed: review outcome"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["accountId","brandStatus","businessType","campaignStatus","complianceContactEmail","complianceContactPhone","country","createdAt","legalName","scenarioId","updatedAt","website"],"description":"A US A2P 10DLC registration. `country` is the country of incorporation (US or CA), not the destination. `brandStatus` and `campaignStatus` are reviewed separately by carriers."},"localNumber":{"type":"object","properties":{"accountId":{"type":"string"},"country":{"type":"string","enum":["GB","IL"],"description":"GB and IL local-number registration."},"kind":{"type":"string","enum":["local_number"]},"registrationType":{"type":"string","enum":["personal","business"],"description":"Whether this local number is registered to a person or a business.\n- personal: an individual. firstName and lastName are that person.\n- business: a company. firstName and lastName are the authorized representative."},"status":{"type":"string","enum":["not_started","in_progress","pending_review","approved","rejected","info_needed"],"description":"Pingram-side 10DLC registration workflow status (brand or campaign).\n- not_started: no customer submission yet\n- pending_review: customer submitted; Pingram has not submitted to carriers\n- in_progress: submitted for carrier review\n- approved | rejected | info_needed: review outcome"},"fields":{"type":"object","properties":{"firstName":{"type":"string","description":"First name. For a business registration, the authorized representative."},"lastName":{"type":"string","description":"Last name. For a business registration, the authorized representative."},"contactPhone":{"type":"string","description":"Contact phone number."},"street":{"type":"string","description":"Street address, including the building number and street name. An IL registration also includes the apartment or suite."},"city":{"type":"string","description":"City."},"postalCode":{"type":"string","description":"Postal or ZIP code."},"buildingNumber":{"type":"string","description":"Building number when it is sent separately from the street address."},"state":{"type":"string","description":"State or province. Required for an IL registration."},"companyName":{"type":"string","description":"Company name. Required for a business registration."},"companyWebsite":{"type":"string","description":"Company website, including https://. Required for a GB business registration."},"businessUseCase":{"type":"string","description":"How this number will be used. Required. A personal registration describes the inbound line, such as appointment reminders or two-factor authentication codes. A business registration describes messages sent to people who opted in, such as appointment reminders or delivery updates."},"subAllocated":{"type":"boolean","description":"True when someone else, such as a client, will use the number. False when you or your business will use it."},"subAllocatedParty":{"type":"string","description":"Name of the person or business who will use the number. Required when subAllocated is true."},"addressCountry":{"type":"string","description":"Country of the address, as a country name or an ISO 3166-1 alpha-2 code. Required for an IL registration, which can use an address outside Israel. A GB registration uses a United Kingdom address and does not send this field."}},"required":["firstName","lastName","contactPhone","street","city","postalCode"],"additionalProperties":false},"documents":{"type":"array","items":{"type":"object","properties":{"docKind":{"type":"string","enum":["passport_or_id","company_registration_certificate","utility_bill","business_registration_certificate","proof_of_address"],"description":"Which document this is.\n- passport_or_id: GB personal, with utility_bill.\n- utility_bill: needed for GB registration; must be less than 3 months old.\n- company_registration_certificate: GB business, with utility_bill.\n- proof_of_address: needed for IL registration; must be less than 3 months old.\n- business_registration_certificate: IL business, with proof_of_address."},"fileName":{"type":"string","description":"File name, including an image or PDF extension."}},"required":["docKind","fileName"],"additionalProperties":false}},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"submittedAt":{"type":"string"}},"required":["accountId","country","kind","registrationType","status","fields","documents","createdAt","updatedAt","submittedAt"],"additionalProperties":false},"senderId":{"type":"object","properties":{"country":{"type":"string","description":"ISO 3166-1 alpha-2 destination country."},"senderId":{"description":"The account Sender ID, or null when none has been submitted.","type":"string","nullable":true},"availability":{"type":"string","enum":["available","unsupported","contact_us"],"description":"Whether the account Sender ID can be used for a destination country.\n- available: the Sender ID can be enabled for this country\n- unsupported: sending to this country with a Sender ID is not supported\n- contact_us: not available yet; contact us about support for this country"},"registrationRequired":{"type":"boolean","description":"True when this country requires Sender ID registration before it can be enabled."},"added":{"type":"boolean","description":"True when this country has been added for the account Sender ID."},"enabled":{"type":"boolean","description":"True when the account Sender ID can be used to send to this country."},"message":{"type":"string","description":"What is needed next, or why the Sender ID cannot be used for this country."},"status":{"type":"string","enum":["not_started","in_progress","pending_review","approved","rejected","info_needed"],"description":"Pingram-side 10DLC registration workflow status (brand or campaign).\n- not_started: no customer submission yet\n- pending_review: customer submitted; Pingram has not submitted to carriers\n- in_progress: submitted for carrier review\n- approved | rejected | info_needed: review outcome"}},"required":["country","senderId","availability","registrationRequired","added","enabled","message"],"additionalProperties":false,"description":"Sender ID for one destination country. `status` is present only when `registrationRequired` is true."}},"required":["country","kind"],"additionalProperties":false,"description":"A registration for one destination country."},"SmsRegistrationCreateRequest":{"type":"object","properties":{"a2p10dlc":{"type":"object","additionalProperties":false,"properties":{"campaignDescription":{"type":"string","description":"Summary of what this campaign sends and why, including audience and typical message content. Required before carrier submission."},"campaignSample1":{"type":"string","description":"Example SMS that represents actual campaign traffic. Required before carrier submission. Should match the use case and typically identify the brand and include STOP/HELP language."},"campaignSample2":{"type":"string","description":"Second example SMS. Required before carrier submission. Required for MARKETING and MIXED use cases."},"campaignSample3":{"type":"string","description":"Optional third example SMS."},"campaignSample4":{"type":"string","description":"Optional fourth example SMS."},"campaignMessageFlow":{"type":"string","description":"How recipients opt in (for example website form, checkout, or keyword). Describe the call-to-action and where consent is collected. Required before carrier submission."},"campaignOptinKeywords":{"type":"string","description":"Extra opt-in keywords as a comma-separated list. START is always included."},"campaignOptinMessage":{"type":"string","description":"Auto-reply sent when a recipient opts in. Required before carrier submission. Should confirm the subscription, mention message frequency, and include STOP and HELP instructions."},"campaignOptoutKeywords":{"type":"string","description":"Extra opt-out keywords as a comma-separated list. STOP is always included."},"campaignOptoutMessage":{"type":"string","description":"Auto-reply sent when a recipient opts out. Required before carrier submission. Should confirm they will receive no further messages."},"campaignHelpKeywords":{"type":"string","description":"Extra help keywords as a comma-separated list. HELP is always included."},"campaignHelpMessage":{"type":"string","description":"Auto-reply sent when a recipient texts a help keyword. Required before carrier submission. Should include a support contact (email and/or phone)."},"campaignEmbeddedLink":{"type":"boolean","description":"Whether campaign messages include URLs."},"campaignEmbeddedLinkUrl":{"type":"string","description":"Sample URL that appears in messages. Provide when campaignEmbeddedLink is true."},"campaignEmbeddedPhone":{"type":"boolean","description":"Whether campaign messages include phone numbers."},"campaignAgeGated":{"type":"boolean","description":"Whether campaign content is age-restricted (18+)."},"campaignDirectLending":{"type":"boolean","description":"Whether the campaign relates to direct lending or loan products."},"campaignPrivacyPolicyLink":{"type":"string","description":"Public URL of the privacy policy that covers this SMS program."},"campaignTermsAndConditionsLink":{"type":"string","description":"Public URL of the terms and conditions that cover this SMS program."},"campaignUsecase":{"type":"string","description":"10DLC campaign use case submitted to carriers. Required before carrier submission. One of 2FA, ACCOUNT_NOTIFICATION, CUSTOMER_CARE, DELIVERY_NOTIFICATION, FRAUD_ALERT, MARKETING, MIXED, POLLING_VOTING, PUBLIC_SERVICE_ANNOUNCEMENT, or SECURITY_ALERT. For MIXED, append comma-separated sub-use cases after MIXED (sub-use cases cannot include MIXED), for example MIXED,2FA,ACCOUNT_NOTIFICATION."},"scenarioId":{"type":"string","enum":["own_brand","client_brand"],"description":"Who the 10DLC brand is registered for.\n- own_brand: personal or company project\n- client_brand: agency or contractor"},"businessType":{"type":"string","enum":["PRIVATE_PROFIT","SOLE_PROPRIETOR","PUBLIC_PROFIT","NON_PROFIT","GOVERNMENT"],"description":"Legal entity type for a 10DLC brand.\n- PRIVATE_PROFIT: private for-profit (LLC, corp, etc.)\n- SOLE_PROPRIETOR: sole proprietorship\n- PUBLIC_PROFIT: publicly traded for-profit\n- NON_PROFIT: non-profit\n- GOVERNMENT: government"},"legalName":{"type":"string","description":"Official registered legal business name. For SOLE_PROPRIETOR, optional DBA or trade name (defaults to firstName and lastName)."},"displayName":{"type":"string","description":"Public brand name shown to recipients and carriers. Use the name customers recognize (your DBA or trade name). For companies with no DBA, use the same value as legalName. For SOLE_PROPRIETOR, this is the brand you send as — not the individual's legal name (set firstName and lastName for that). If the sole proprietor has no DBA, use first and last name."},"firstName":{"type":"string","description":"Legal first name of the sole proprietor. Required when businessType is SOLE_PROPRIETOR."},"lastName":{"type":"string","description":"Legal last name of the sole proprietor. Required when businessType is SOLE_PROPRIETOR."},"taxId":{"type":"string","description":"For US companies (country US): 9-digit EIN (Employer Identification Number). For Canada (country CA): 9-digit BN (Business Number). For other countries: national business tax identifier. Required except when businessType is SOLE_PROPRIETOR."},"website":{"type":"string","description":"Public website for the brand. Include a scheme (https://) or a domain; https:// is prepended when omitted. Carriers expect a working site with privacy policy and terms."},"country":{"type":"string","description":"ISO 3166-1 alpha-2 country of incorporation (for example US or CA)."},"street":{"type":"string","description":"Street address that matches official tax registration."},"city":{"type":"string","description":"City that matches official tax registration."},"state":{"type":"string","description":"State (US) or province (CA) that matches official tax registration."},"postalCode":{"type":"string","description":"ZIP code (US) or postal code (CA) that matches official tax registration."},"complianceContactEmail":{"type":"string","description":"Email for the 10DLC compliance contact. Used for carrier and registration follow-up."},"complianceContactPhone":{"type":"string","description":"Phone number for the 10DLC compliance contact. E.164 preferred; national numbers are normalized using country."}},"required":["businessType","city","complianceContactEmail","complianceContactPhone","country","displayName","postalCode","scenarioId","state","street","website"],"description":"Fields for creating a US A2P 10DLC registration. `country` is the country of incorporation (US or CA), not the destination."},"localNumber":{"type":"object","properties":{"registrationType":{"type":"string","enum":["personal","business"],"description":"Whether this local number is registered to a person or a business.\n- personal: an individual. firstName and lastName are that person.\n- business: a company. firstName and lastName are the authorized representative."},"fields":{"type":"object","properties":{"firstName":{"type":"string","description":"First name. For a business registration, the authorized representative."},"lastName":{"type":"string","description":"Last name. For a business registration, the authorized representative."},"contactPhone":{"type":"string","description":"Contact phone number."},"street":{"type":"string","description":"Street address, including the building number and street name. An IL registration also includes the apartment or suite."},"city":{"type":"string","description":"City."},"postalCode":{"type":"string","description":"Postal or ZIP code."},"buildingNumber":{"type":"string","description":"Building number when it is sent separately from the street address."},"state":{"type":"string","description":"State or province. Required for an IL registration."},"companyName":{"type":"string","description":"Company name. Required for a business registration."},"companyWebsite":{"type":"string","description":"Company website, including https://. Required for a GB business registration."},"businessUseCase":{"type":"string","description":"How this number will be used. Required. A personal registration describes the inbound line, such as appointment reminders or two-factor authentication codes. A business registration describes messages sent to people who opted in, such as appointment reminders or delivery updates."},"subAllocated":{"type":"boolean","description":"True when someone else, such as a client, will use the number. False when you or your business will use it."},"subAllocatedParty":{"type":"string","description":"Name of the person or business who will use the number. Required when subAllocated is true."},"addressCountry":{"type":"string","description":"Country of the address, as a country name or an ISO 3166-1 alpha-2 code. Required for an IL registration, which can use an address outside Israel. A GB registration uses a United Kingdom address and does not send this field."}},"required":["firstName","lastName","contactPhone","street","city","postalCode"],"additionalProperties":false},"documents":{"type":"array","items":{"type":"object","properties":{"docKind":{"type":"string","enum":["passport_or_id","company_registration_certificate","utility_bill","business_registration_certificate","proof_of_address"],"description":"Which document this is.\n- passport_or_id: GB personal, with utility_bill.\n- utility_bill: needed for GB registration; must be less than 3 months old.\n- company_registration_certificate: GB business, with utility_bill.\n- proof_of_address: needed for IL registration; must be less than 3 months old.\n- business_registration_certificate: IL business, with proof_of_address."},"fileName":{"type":"string","description":"File name, including an image or PDF extension."},"content":{"type":"string","description":"Base64-encoded image or PDF."},"url":{"type":"string","description":"HTTPS URL of an image or PDF, up to 10 MB."}},"required":["docKind","fileName"],"additionalProperties":false,"description":"A local-number registration document. Include exactly one of `content` or `url`. Inline `content` is about 4 MB raw in total for the request."}}},"required":["registrationType","fields","documents"],"additionalProperties":false}},"additionalProperties":false,"description":"Body for POST /registrations/{country}/{kind}. Include the object that matches `kind`. A Sender ID registration has no body."},"SmsRegistrationUpdateRequest":{"type":"object","properties":{"a2p10dlc":{"type":"object","additionalProperties":false,"properties":{"campaignDescription":{"type":"string","description":"Summary of what this campaign sends and why, including audience and typical message content. Required before carrier submission."},"campaignSample1":{"type":"string","description":"Example SMS that represents actual campaign traffic. Required before carrier submission. Should match the use case and typically identify the brand and include STOP/HELP language."},"campaignSample2":{"type":"string","description":"Second example SMS. Required before carrier submission. Required for MARKETING and MIXED use cases."},"campaignSample3":{"type":"string","description":"Optional third example SMS."},"campaignSample4":{"type":"string","description":"Optional fourth example SMS."},"campaignMessageFlow":{"type":"string","description":"How recipients opt in (for example website form, checkout, or keyword). Describe the call-to-action and where consent is collected. Required before carrier submission."},"campaignOptinKeywords":{"type":"string","description":"Extra opt-in keywords as a comma-separated list. START is always included."},"campaignOptinMessage":{"type":"string","description":"Auto-reply sent when a recipient opts in. Required before carrier submission. Should confirm the subscription, mention message frequency, and include STOP and HELP instructions."},"campaignOptoutKeywords":{"type":"string","description":"Extra opt-out keywords as a comma-separated list. STOP is always included."},"campaignOptoutMessage":{"type":"string","description":"Auto-reply sent when a recipient opts out. Required before carrier submission. Should confirm they will receive no further messages."},"campaignHelpKeywords":{"type":"string","description":"Extra help keywords as a comma-separated list. HELP is always included."},"campaignHelpMessage":{"type":"string","description":"Auto-reply sent when a recipient texts a help keyword. Required before carrier submission. Should include a support contact (email and/or phone)."},"campaignEmbeddedLink":{"type":"boolean","description":"Whether campaign messages include URLs."},"campaignEmbeddedLinkUrl":{"type":"string","description":"Sample URL that appears in messages. Provide when campaignEmbeddedLink is true."},"campaignEmbeddedPhone":{"type":"boolean","description":"Whether campaign messages include phone numbers."},"campaignAgeGated":{"type":"boolean","description":"Whether campaign content is age-restricted (18+)."},"campaignDirectLending":{"type":"boolean","description":"Whether the campaign relates to direct lending or loan products."},"campaignPrivacyPolicyLink":{"type":"string","description":"Public URL of the privacy policy that covers this SMS program."},"campaignTermsAndConditionsLink":{"type":"string","description":"Public URL of the terms and conditions that cover this SMS program."},"campaignUsecase":{"type":"string","description":"10DLC campaign use case submitted to carriers. Required before carrier submission. One of 2FA, ACCOUNT_NOTIFICATION, CUSTOMER_CARE, DELIVERY_NOTIFICATION, FRAUD_ALERT, MARKETING, MIXED, POLLING_VOTING, PUBLIC_SERVICE_ANNOUNCEMENT, or SECURITY_ALERT. For MIXED, append comma-separated sub-use cases after MIXED (sub-use cases cannot include MIXED), for example MIXED,2FA,ACCOUNT_NOTIFICATION."},"scenarioId":{"type":"string","enum":["own_brand","client_brand"],"description":"Who the 10DLC brand is registered for.\n- own_brand: personal or company project\n- client_brand: agency or contractor"},"businessType":{"type":"string","enum":["PRIVATE_PROFIT","SOLE_PROPRIETOR","PUBLIC_PROFIT","NON_PROFIT","GOVERNMENT"],"description":"Legal entity type for a 10DLC brand.\n- PRIVATE_PROFIT: private for-profit (LLC, corp, etc.)\n- SOLE_PROPRIETOR: sole proprietorship\n- PUBLIC_PROFIT: publicly traded for-profit\n- NON_PROFIT: non-profit\n- GOVERNMENT: government"},"legalName":{"type":"string","description":"Official registered legal business name. For SOLE_PROPRIETOR, optional DBA or trade name (defaults to firstName and lastName)."},"displayName":{"type":"string","description":"Public brand name shown to recipients and carriers. Use the name customers recognize (your DBA or trade name). For SOLE_PROPRIETOR, this is the brand you send as — not the individual's legal name. Omit to keep the existing value. If you change legalName and omit displayName, displayName is reset to the new legalName."},"firstName":{"type":"string","description":"Legal first name of the sole proprietor. Required when businessType is SOLE_PROPRIETOR."},"lastName":{"type":"string","description":"Legal last name of the sole proprietor. Required when businessType is SOLE_PROPRIETOR."},"taxId":{"type":"string","description":"For US companies (country US): 9-digit EIN (Employer Identification Number). For Canada (country CA): 9-digit BN (Business Number). For other countries: national business tax identifier. Required except when businessType is SOLE_PROPRIETOR."},"website":{"type":"string","description":"Public website for the brand. Include a scheme (https://) or a domain; https:// is prepended when omitted. Carriers expect a working site with privacy policy and terms."},"country":{"type":"string","description":"ISO 3166-1 alpha-2 country of incorporation (for example US or CA)."},"street":{"type":"string","description":"Street address that matches official tax registration."},"city":{"type":"string","description":"City that matches official tax registration."},"state":{"type":"string","description":"State (US) or province (CA) that matches official tax registration."},"postalCode":{"type":"string","description":"ZIP code (US) or postal code (CA) that matches official tax registration."},"complianceContactEmail":{"type":"string","description":"Email for the 10DLC compliance contact. Used for carrier and registration follow-up."},"complianceContactPhone":{"type":"string","description":"Phone number for the 10DLC compliance contact. E.164 preferred; national numbers are normalized using country."}},"description":"Fields for updating a US A2P 10DLC registration. `country` is the country of incorporation (US or CA), not the destination."},"localNumber":{"type":"object","properties":{"registrationType":{"type":"string","enum":["personal","business"],"description":"Whether this local number is registered to a person or a business.\n- personal: an individual. firstName and lastName are that person.\n- business: a company. firstName and lastName are the authorized representative."},"fields":{"type":"object","properties":{"firstName":{"type":"string","description":"First name. For a business registration, the authorized representative."},"lastName":{"type":"string","description":"Last name. For a business registration, the authorized representative."},"contactPhone":{"type":"string","description":"Contact phone number."},"street":{"type":"string","description":"Street address, including the building number and street name. An IL registration also includes the apartment or suite."},"city":{"type":"string","description":"City."},"postalCode":{"type":"string","description":"Postal or ZIP code."},"buildingNumber":{"type":"string","description":"Building number when it is sent separately from the street address."},"state":{"type":"string","description":"State or province. Required for an IL registration."},"companyName":{"type":"string","description":"Company name. Required for a business registration."},"companyWebsite":{"type":"string","description":"Company website, including https://. Required for a GB business registration."},"businessUseCase":{"type":"string","description":"How this number will be used. Required. A personal registration describes the inbound line, such as appointment reminders or two-factor authentication codes. A business registration describes messages sent to people who opted in, such as appointment reminders or delivery updates."},"subAllocated":{"type":"boolean","description":"True when someone else, such as a client, will use the number. False when you or your business will use it."},"subAllocatedParty":{"type":"string","description":"Name of the person or business who will use the number. Required when subAllocated is true."},"addressCountry":{"type":"string","description":"Country of the address, as a country name or an ISO 3166-1 alpha-2 code. Required for an IL registration, which can use an address outside Israel. A GB registration uses a United Kingdom address and does not send this field."}},"required":["firstName","lastName","contactPhone","street","city","postalCode"],"additionalProperties":false},"documents":{"type":"array","items":{"type":"object","properties":{"docKind":{"type":"string","enum":["passport_or_id","company_registration_certificate","utility_bill","business_registration_certificate","proof_of_address"],"description":"Which document this is.\n- passport_or_id: GB personal, with utility_bill.\n- utility_bill: needed for GB registration; must be less than 3 months old.\n- company_registration_certificate: GB business, with utility_bill.\n- proof_of_address: needed for IL registration; must be less than 3 months old.\n- business_registration_certificate: IL business, with proof_of_address."},"fileName":{"type":"string","description":"File name, including an image or PDF extension."},"content":{"type":"string","description":"Base64-encoded image or PDF."},"url":{"type":"string","description":"HTTPS URL of an image or PDF, up to 10 MB."}},"required":["docKind","fileName"],"additionalProperties":false,"description":"A local-number registration document. Include exactly one of `content` or `url`. Inline `content` is about 4 MB raw in total for the request."}}},"additionalProperties":false}},"additionalProperties":false,"description":"Body for PATCH /registrations/{country}/{kind}. Include the object that matches `kind`."},"SmsSenderId":{"type":"object","properties":{"accountId":{"type":"string"},"senderId":{"type":"string"},"status":{"type":"string","enum":["not_started","in_progress","pending_review","approved","rejected","info_needed"],"description":"Pingram-side 10DLC registration workflow status (brand or campaign).\n- not_started: no customer submission yet\n- pending_review: customer submitted; Pingram has not submitted to carriers\n- in_progress: submitted for carrier review\n- approved | rejected | info_needed: review outcome"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["accountId","senderId","status","createdAt","updatedAt"],"additionalProperties":false},"SmsSenderIdAdmin":{"type":"object","properties":{"accountId":{"type":"string"},"senderId":{"type":"string"},"status":{"type":"string","enum":["not_started","in_progress","pending_review","approved","rejected","info_needed"],"description":"Pingram-side 10DLC registration workflow status (brand or campaign).\n- not_started: no customer submission yet\n- pending_review: customer submitted; Pingram has not submitted to carriers\n- in_progress: submitted for carrier review\n- approved | rejected | info_needed: review outcome"},"profileId":{"type":"string"},"submittedToProviderAt":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["accountId","senderId","status","createdAt","updatedAt"],"additionalProperties":false,"description":"Admin view of the account Sender ID, including whether it has been submitted to carriers."},"SmsSenderIdAdminUpdateRequest":{"type":"object","properties":{"status":{"type":"string","enum":["not_started","in_progress","pending_review","approved","rejected","info_needed"],"description":"Pingram-side 10DLC registration workflow status (brand or campaign).\n- not_started: no customer submission yet\n- pending_review: customer submitted; Pingram has not submitted to carriers\n- in_progress: submitted for carrier review\n- approved | rejected | info_needed: review outcome"}},"required":["status"],"additionalProperties":false},"SmsSenderIdCreateRequest":{"type":"object","properties":{"senderId":{"type":"string","description":"Alphanumeric Sender ID, 3–11 letters, numbers, and spaces."}},"required":["senderId"],"additionalProperties":false},"StartChangeEmailRequest":{"type":"object","properties":{"newEmail":{"type":"string"},"password":{"type":"string","description":"Current account password. Required when the account already has a password."},"newPassword":{"type":"string","description":"Password to set. Required when the account has no password yet, so the new email address can be used to sign in after social sign-in is removed."},"mfaCode":{"type":"string","description":"TOTP code. Required when software-token MFA is enabled on an account that has a password."}},"required":["newEmail"],"additionalProperties":false},"StartPasswordChangeRequest":{"type":"object","properties":{"password":{"type":"string","description":"New password."},"currentPassword":{"type":"string","description":"Current password. Required when the account already has one."},"mfaCode":{"type":"string","description":"TOTP code. Required when software-token MFA is enabled and the account has a password."}},"required":["password"],"additionalProperties":false},"string":{"type":"string"},"SubNotification":{"type":"object","properties":{"accountId":{"type":"string"},"notificationId":{"type":"string"},"subNotificationId":{"type":"string"},"title":{"type":"string"}},"required":["accountId","notificationId","subNotificationId","title"],"additionalProperties":false},"SubNotificationPUTRequest":{"type":"object","properties":{"title":{"type":"string"}},"required":["title"],"additionalProperties":false},"SuccessResponse":{"type":"object","properties":{"success":{"type":"boolean","enum":[true]}},"required":["success"],"additionalProperties":false},"SupabaseConfigureRequest":{"type":"object","properties":{"projectRef":{"type":"string"},"projectName":{"type":"string"},"senderName":{"type":"string"},"senderEmail":{"type":"string"}},"required":["projectRef","projectName","senderName","senderEmail"],"additionalProperties":false},"SupabaseConfigureResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}},"required":["success"],"additionalProperties":false},"SupabaseOAuthRequest":{"type":"object","properties":{"code":{"type":"string"},"redirect_uri":{"type":"string"},"code_verifier":{"type":"string"}},"required":["code","redirect_uri","code_verifier"],"additionalProperties":false},"SupabaseOAuthResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}},"required":["success"],"additionalProperties":false},"SupabaseProjectsResponse":{"type":"object","properties":{"projects":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"organization_id":{"type":"string"},"name":{"type":"string"},"region":{"type":"string"},"created_at":{"type":"string"}},"required":["id","organization_id","name","region","created_at"],"additionalProperties":false}}},"required":["projects"],"additionalProperties":false},"SupabaseStatusResponse":{"type":"object","properties":{"connected":{"type":"boolean"},"configured":{"type":"boolean"},"projectName":{"type":"string"},"configuredAt":{"type":"string"}},"required":["connected","configured"],"additionalProperties":false},"Template":{"type":"object","properties":{"envId":{"type":"string"},"notificationId":{"type":"string"},"templateId":{"type":"string"},"channel":{"$ref":"#/components/schemas/ChannelsEnum"},"default":{"type":"boolean"},"isDefaultFor":{"type":"object","additionalProperties":{"type":"boolean"}}},"required":["envId","notificationId","templateId","channel","default"],"additionalProperties":false},"TemplatePatchRequest":{"type":"object","properties":{"html":{"type":"string","description":"HTML body of the email."},"previewText":{"type":"string","description":"Preview text (e.g. for inbox)."},"internal":{"type":"string","description":"Internal editor representation of the email content (e.g. Bee or Redactor JSON). Used for editing and component embedding; the actual email sent to recipients uses the html field."},"subject":{"type":"string","description":"Email subject line."},"senderName":{"type":"string","description":"Sender display name."},"senderEmail":{"type":"string","description":"Sender email address."},"title":{"type":"string","description":"Notification title (in-app)."},"redirectURL":{"type":"string","description":"URL to open when the user taps the notification."},"imageURL":{"type":"string","description":"Image URL shown in the in-app notification."},"instant":{"type":"object","properties":{"title":{"type":"string"},"redirectURL":{"type":"string"},"imageURL":{"type":"string"}},"required":["imageURL"],"additionalProperties":false,"description":"Copy for instant (real-time) delivery."},"batch":{"type":"object","properties":{"title":{"type":"string"},"redirectURL":{"type":"string"},"imageURL":{"type":"string"}},"required":["title","redirectURL","imageURL"],"additionalProperties":false,"description":"Copy for batch delivery."},"text":{"type":"string","description":"Message text (SMS or call)."},"message":{"type":"string","description":"Push notification body text. (title is shared with INAPP_WEB above.)"},"icon":{"type":"string","description":"Web push: icon URL. Slack: bot icon (emoji or URL)."},"url":{"type":"string","description":"Web push: URL to open when the notification is clicked."},"blocks":{"type":"array","items":{"type":"object","additionalProperties":{}},"description":"Slack message blocks (optional)."},"username":{"type":"string","description":"Slack bot username."}},"additionalProperties":false,"description":"Request body for updating a template. Include only properties that apply to the channel in the path. EMAIL: html, subject, senderName, etc. | INAPP_WEB: title, redirectURL, instant, batch | SMS/CALL: text | PUSH/WEB_PUSH: title, message, icon, url | SLACK: text, blocks, username, icon"},"TemplatePostRequest":{"type":"object","properties":{"templateId":{"type":"string","description":"Unique ID for this template within the notification and channel. Required."},"html":{"type":"string","description":"HTML body of the email."},"previewText":{"type":"string","description":"Preview text (e.g. for inbox)."},"internal":{"type":"string","description":"Internal editor representation of the email content (e.g. Bee or Redactor JSON). Used for editing and component embedding; the actual email sent to recipients uses the html field."},"subject":{"type":"string","description":"Email subject line."},"senderName":{"type":"string","description":"Sender display name."},"senderEmail":{"type":"string","description":"Sender email address."},"title":{"type":"string","description":"Notification title (in-app)."},"redirectURL":{"type":"string","description":"URL to open when the user taps the notification."},"imageURL":{"type":"string","description":"Image URL shown in the in-app notification."},"instant":{"type":"object","properties":{"title":{"type":"string"},"redirectURL":{"type":"string"},"imageURL":{"type":"string"}},"required":["imageURL"],"additionalProperties":false,"description":"Copy for instant (real-time) delivery."},"batch":{"type":"object","properties":{"title":{"type":"string"},"redirectURL":{"type":"string"},"imageURL":{"type":"string"}},"required":["title","redirectURL","imageURL"],"additionalProperties":false,"description":"Copy for batch delivery."},"text":{"type":"string","description":"Message text (SMS or call)."},"message":{"type":"string","description":"Push notification body text. (title is shared with INAPP_WEB above.)"},"icon":{"type":"string","description":"Web push: icon URL. Slack: bot icon (emoji or URL)."},"url":{"type":"string","description":"Web push: URL to open when the notification is clicked."},"blocks":{"type":"array","items":{"type":"object","additionalProperties":{}},"description":"Slack message blocks (optional)."},"username":{"type":"string","description":"Slack bot username."}},"required":["templateId"],"additionalProperties":false,"description":"Request body for creating a template. Include templateId (required) plus any channel-specific fields for the channel in the path. Which fields apply depends on the channel (EMAIL, INAPP_WEB, SMS, PUSH, etc.)."},"TenDlcBrandAdminUpdateRequest":{"type":"object","properties":{"scenarioId":{"type":"string","enum":["own_brand","client_brand"],"description":"Who the 10DLC brand is registered for.\n- own_brand: personal or company project\n- client_brand: agency or contractor"},"businessType":{"type":"string","enum":["PRIVATE_PROFIT","SOLE_PROPRIETOR","PUBLIC_PROFIT","NON_PROFIT","GOVERNMENT"],"description":"Legal entity type for a 10DLC brand.\n- PRIVATE_PROFIT: private for-profit (LLC, corp, etc.)\n- SOLE_PROPRIETOR: sole proprietorship\n- PUBLIC_PROFIT: publicly traded for-profit\n- NON_PROFIT: non-profit\n- GOVERNMENT: government"},"legalName":{"type":"string","description":"Official registered legal business name. For SOLE_PROPRIETOR, optional DBA or trade name (defaults to firstName and lastName)."},"displayName":{"type":"string","description":"Public brand name shown to recipients and carriers. Use the name customers recognize (your DBA or trade name). For SOLE_PROPRIETOR, this is the brand you send as — not the individual's legal name. Omit to keep the existing value. If you change legalName and omit displayName, displayName is reset to the new legalName."},"firstName":{"type":"string","description":"Legal first name of the sole proprietor. Required when businessType is SOLE_PROPRIETOR."},"lastName":{"type":"string","description":"Legal last name of the sole proprietor. Required when businessType is SOLE_PROPRIETOR."},"taxId":{"type":"string","description":"For US companies (country US): 9-digit EIN (Employer Identification Number). For Canada (country CA): 9-digit BN (Business Number). For other countries: national business tax identifier. Required except when businessType is SOLE_PROPRIETOR."},"website":{"type":"string","description":"Public website for the brand. Include a scheme (https://) or a domain; https:// is prepended when omitted. Carriers expect a working site with privacy policy and terms."},"country":{"type":"string","description":"ISO 3166-1 alpha-2 country of incorporation (for example US or CA)."},"street":{"type":"string","description":"Street address that matches official tax registration."},"city":{"type":"string","description":"City that matches official tax registration."},"state":{"type":"string","description":"State (US) or province (CA) that matches official tax registration."},"postalCode":{"type":"string","description":"ZIP code (US) or postal code (CA) that matches official tax registration."},"complianceContactEmail":{"type":"string","description":"Email for the 10DLC compliance contact. Used for carrier and registration follow-up."},"complianceContactPhone":{"type":"string","description":"Phone number for the 10DLC compliance contact. E.164 preferred; national numbers are normalized using country."},"vertical":{"type":"string","enum":["AGRICULTURE","COMMUNICATION","CONSTRUCTION","EDUCATION","ENERGY","ENTERTAINMENT","FINANCIAL","GAMBLING","GOVERNMENT","HEALTHCARE","HOSPITALITY","HUMAN_RESOURCES","INSURANCE","LEGAL","MANUFACTURING","NGO","POLITICAL","POSTAL","PROFESSIONAL","REAL_ESTATE","RETAIL","TECHNOLOGY","TRANSPORTATION"],"description":"Industry vertical required before Pingram submits the brand to carriers."},"entityType":{"type":"string","description":"Legacy only when businessType is Other."},"brandStatus":{"type":"string","enum":["not_started","in_progress","pending_review","approved","rejected","info_needed"],"description":"Pingram-side 10DLC registration workflow status (brand or campaign).\n- not_started: no customer submission yet\n- pending_review: customer submitted; Pingram has not submitted to carriers\n- in_progress: submitted for carrier review\n- approved | rejected | info_needed: review outcome"}},"additionalProperties":false,"description":"Request body for updating a 10DLC brand during review."},"TenDlcBrandCreateRequest":{"type":"object","properties":{"scenarioId":{"type":"string","enum":["own_brand","client_brand"],"description":"Who the 10DLC brand is registered for.\n- own_brand: personal or company project\n- client_brand: agency or contractor"},"businessType":{"type":"string","enum":["PRIVATE_PROFIT","SOLE_PROPRIETOR","PUBLIC_PROFIT","NON_PROFIT","GOVERNMENT"],"description":"Legal entity type for a 10DLC brand.\n- PRIVATE_PROFIT: private for-profit (LLC, corp, etc.)\n- SOLE_PROPRIETOR: sole proprietorship\n- PUBLIC_PROFIT: publicly traded for-profit\n- NON_PROFIT: non-profit\n- GOVERNMENT: government"},"legalName":{"type":"string","description":"Official registered legal business name. For SOLE_PROPRIETOR, optional DBA or trade name (defaults to firstName and lastName)."},"displayName":{"type":"string","description":"Public brand name shown to recipients and carriers. Use the name customers recognize (your DBA or trade name). For companies with no DBA, use the same value as legalName. For SOLE_PROPRIETOR, this is the brand you send as — not the individual's legal name (set firstName and lastName for that). If the sole proprietor has no DBA, use first and last name."},"firstName":{"type":"string","description":"Legal first name of the sole proprietor. Required when businessType is SOLE_PROPRIETOR."},"lastName":{"type":"string","description":"Legal last name of the sole proprietor. Required when businessType is SOLE_PROPRIETOR."},"taxId":{"type":"string","description":"For US companies (country US): 9-digit EIN (Employer Identification Number). For Canada (country CA): 9-digit BN (Business Number). For other countries: national business tax identifier. Required except when businessType is SOLE_PROPRIETOR."},"website":{"type":"string","description":"Public website for the brand. Include a scheme (https://) or a domain; https:// is prepended when omitted. Carriers expect a working site with privacy policy and terms."},"country":{"type":"string","description":"ISO 3166-1 alpha-2 country of incorporation (for example US or CA)."},"street":{"type":"string","description":"Street address that matches official tax registration."},"city":{"type":"string","description":"City that matches official tax registration."},"state":{"type":"string","description":"State (US) or province (CA) that matches official tax registration."},"postalCode":{"type":"string","description":"ZIP code (US) or postal code (CA) that matches official tax registration."},"complianceContactEmail":{"type":"string","description":"Email for the 10DLC compliance contact. Used for carrier and registration follow-up."},"complianceContactPhone":{"type":"string","description":"Phone number for the 10DLC compliance contact. E.164 preferred; national numbers are normalized using country."}},"required":["scenarioId","businessType","displayName","website","country","street","city","state","postalCode","complianceContactEmail","complianceContactPhone"],"additionalProperties":false,"description":"Request body for POST /registrations/us/10dlc/brand"},"TenDlcBrandRegistration":{"type":"object","properties":{"accountId":{"type":"string"},"scenarioId":{"type":"string"},"businessType":{"type":"string"},"legalName":{"type":"string","description":"Official registered legal business name. For SOLE_PROPRIETOR, may be a DBA or trade name."},"displayName":{"type":"string","description":"Public brand name shown to recipients and carriers."},"firstName":{"type":"string","description":"Legal first name of the sole proprietor. Present when businessType is SOLE_PROPRIETOR."},"lastName":{"type":"string","description":"Legal last name of the sole proprietor. Present when businessType is SOLE_PROPRIETOR."},"taxId":{"type":"string","description":"For US companies (country US): 9-digit EIN (Employer Identification Number). For Canada (country CA): 9-digit BN (Business Number). For other countries: national business tax identifier. Omitted when businessType is SOLE_PROPRIETOR."},"website":{"type":"string","description":"Public website for the brand."},"country":{"type":"string","description":"ISO 3166-1 alpha-2 country of incorporation (for example US or CA)."},"street":{"type":"string","description":"Street address that matches official tax registration."},"city":{"type":"string","description":"City that matches official tax registration."},"state":{"type":"string","description":"State (US) or province (CA) that matches official tax registration."},"postalCode":{"type":"string","description":"ZIP code (US) or postal code (CA) that matches official tax registration."},"fullAddress":{"type":"string","description":"Legacy records only; new submissions use structured address fields."},"complianceContactEmail":{"type":"string","description":"Email for the 10DLC compliance contact."},"complianceContactPhone":{"type":"string","description":"Phone number for the 10DLC compliance contact."},"brandStatus":{"type":"string","enum":["not_started","in_progress","pending_review","approved","rejected","info_needed"],"description":"Pingram-side 10DLC registration workflow status (brand or campaign).\n- not_started: no customer submission yet\n- pending_review: customer submitted; Pingram has not submitted to carriers\n- in_progress: submitted for carrier review\n- approved | rejected | info_needed: review outcome"},"campaignStatus":{"type":"string","enum":["not_started","in_progress","pending_review","approved","rejected","info_needed"],"description":"Pingram-side 10DLC registration workflow status (brand or campaign).\n- not_started: no customer submission yet\n- pending_review: customer submitted; Pingram has not submitted to carriers\n- in_progress: submitted for carrier review\n- approved | rejected | info_needed: review outcome"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["accountId","scenarioId","businessType","legalName","website","country","complianceContactEmail","complianceContactPhone","brandStatus","campaignStatus","createdAt","updatedAt"],"additionalProperties":false,"description":"Public response type for 10DLC brand registration"},"TenDlcBrandRegistrationDetails":{"type":"object","properties":{"accountId":{"type":"string"},"scenarioId":{"type":"string"},"businessType":{"type":"string"},"legalName":{"type":"string","description":"Official registered legal business name. For SOLE_PROPRIETOR, may be a DBA or trade name."},"displayName":{"type":"string","description":"Public brand name shown to recipients and carriers."},"firstName":{"type":"string","description":"Legal first name of the sole proprietor. Present when businessType is SOLE_PROPRIETOR."},"lastName":{"type":"string","description":"Legal last name of the sole proprietor. Present when businessType is SOLE_PROPRIETOR."},"taxId":{"type":"string","description":"For US companies (country US): 9-digit EIN (Employer Identification Number). For Canada (country CA): 9-digit BN (Business Number). For other countries: national business tax identifier. Omitted when businessType is SOLE_PROPRIETOR."},"website":{"type":"string","description":"Public website for the brand."},"country":{"type":"string","description":"ISO 3166-1 alpha-2 country of incorporation (for example US or CA)."},"street":{"type":"string","description":"Street address that matches official tax registration."},"city":{"type":"string","description":"City that matches official tax registration."},"state":{"type":"string","description":"State (US) or province (CA) that matches official tax registration."},"postalCode":{"type":"string","description":"ZIP code (US) or postal code (CA) that matches official tax registration."},"fullAddress":{"type":"string","description":"Legacy records only; new submissions use structured address fields."},"complianceContactEmail":{"type":"string","description":"Email for the 10DLC compliance contact."},"complianceContactPhone":{"type":"string","description":"Phone number for the 10DLC compliance contact."},"brandStatus":{"type":"string","enum":["not_started","in_progress","pending_review","approved","rejected","info_needed"],"description":"Pingram-side 10DLC registration workflow status (brand or campaign).\n- not_started: no customer submission yet\n- pending_review: customer submitted; Pingram has not submitted to carriers\n- in_progress: submitted for carrier review\n- approved | rejected | info_needed: review outcome"},"campaignStatus":{"type":"string","enum":["not_started","in_progress","pending_review","approved","rejected","info_needed"],"description":"Pingram-side 10DLC registration workflow status (brand or campaign).\n- not_started: no customer submission yet\n- pending_review: customer submitted; Pingram has not submitted to carriers\n- in_progress: submitted for carrier review\n- approved | rejected | info_needed: review outcome"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"vertical":{"type":"string","description":"Industry vertical required before Pingram submits the brand to carriers (for example TECHNOLOGY, HEALTHCARE, RETAIL, or FINANCIAL)."},"entityType":{"type":"string","description":"Legacy only when businessType is Other."},"profileId":{"type":"string"},"brandId":{"type":"string"}},"additionalProperties":false,"required":["accountId","brandStatus","businessType","campaignStatus","complianceContactEmail","complianceContactPhone","country","createdAt","legalName","scenarioId","updatedAt","website"],"description":"Admin GET response; includes carrier-assigned IDs and admin-only fields."},"TenDlcBrandUpdateRequest":{"type":"object","properties":{"scenarioId":{"type":"string","enum":["own_brand","client_brand"],"description":"Who the 10DLC brand is registered for.\n- own_brand: personal or company project\n- client_brand: agency or contractor"},"businessType":{"type":"string","enum":["PRIVATE_PROFIT","SOLE_PROPRIETOR","PUBLIC_PROFIT","NON_PROFIT","GOVERNMENT"],"description":"Legal entity type for a 10DLC brand.\n- PRIVATE_PROFIT: private for-profit (LLC, corp, etc.)\n- SOLE_PROPRIETOR: sole proprietorship\n- PUBLIC_PROFIT: publicly traded for-profit\n- NON_PROFIT: non-profit\n- GOVERNMENT: government"},"legalName":{"type":"string","description":"Official registered legal business name. For SOLE_PROPRIETOR, optional DBA or trade name (defaults to firstName and lastName)."},"displayName":{"type":"string","description":"Public brand name shown to recipients and carriers. Use the name customers recognize (your DBA or trade name). For SOLE_PROPRIETOR, this is the brand you send as — not the individual's legal name. Omit to keep the existing value. If you change legalName and omit displayName, displayName is reset to the new legalName."},"firstName":{"type":"string","description":"Legal first name of the sole proprietor. Required when businessType is SOLE_PROPRIETOR."},"lastName":{"type":"string","description":"Legal last name of the sole proprietor. Required when businessType is SOLE_PROPRIETOR."},"taxId":{"type":"string","description":"For US companies (country US): 9-digit EIN (Employer Identification Number). For Canada (country CA): 9-digit BN (Business Number). For other countries: national business tax identifier. Required except when businessType is SOLE_PROPRIETOR."},"website":{"type":"string","description":"Public website for the brand. Include a scheme (https://) or a domain; https:// is prepended when omitted. Carriers expect a working site with privacy policy and terms."},"country":{"type":"string","description":"ISO 3166-1 alpha-2 country of incorporation (for example US or CA)."},"street":{"type":"string","description":"Street address that matches official tax registration."},"city":{"type":"string","description":"City that matches official tax registration."},"state":{"type":"string","description":"State (US) or province (CA) that matches official tax registration."},"postalCode":{"type":"string","description":"ZIP code (US) or postal code (CA) that matches official tax registration."},"complianceContactEmail":{"type":"string","description":"Email for the 10DLC compliance contact. Used for carrier and registration follow-up."},"complianceContactPhone":{"type":"string","description":"Phone number for the 10DLC compliance contact. E.164 preferred; national numbers are normalized using country."}},"additionalProperties":false,"description":"Request body for PATCH /registrations/us/10dlc/brand"},"TenDlcCampaignAdminUpdateRequest":{"type":"object","properties":{"campaignDescription":{"type":"string","description":"Summary of what this campaign sends and why, including audience and typical message content. Required before carrier submission."},"campaignSample1":{"type":"string","description":"Example SMS that represents actual campaign traffic. Required before carrier submission. Should match the use case and typically identify the brand and include STOP/HELP language."},"campaignSample2":{"type":"string","description":"Second example SMS. Required before carrier submission. Required for MARKETING and MIXED use cases."},"campaignSample3":{"type":"string","description":"Optional third example SMS."},"campaignSample4":{"type":"string","description":"Optional fourth example SMS."},"campaignMessageFlow":{"type":"string","description":"How recipients opt in (for example website form, checkout, or keyword). Describe the call-to-action and where consent is collected. Required before carrier submission."},"campaignOptinKeywords":{"type":"string","description":"Extra opt-in keywords as a comma-separated list. START is always included."},"campaignOptinMessage":{"type":"string","description":"Auto-reply sent when a recipient opts in. Required before carrier submission. Should confirm the subscription, mention message frequency, and include STOP and HELP instructions."},"campaignOptoutKeywords":{"type":"string","description":"Extra opt-out keywords as a comma-separated list. STOP is always included."},"campaignOptoutMessage":{"type":"string","description":"Auto-reply sent when a recipient opts out. Required before carrier submission. Should confirm they will receive no further messages."},"campaignHelpKeywords":{"type":"string","description":"Extra help keywords as a comma-separated list. HELP is always included."},"campaignHelpMessage":{"type":"string","description":"Auto-reply sent when a recipient texts a help keyword. Required before carrier submission. Should include a support contact (email and/or phone)."},"campaignEmbeddedLink":{"type":"boolean","description":"Whether campaign messages include URLs."},"campaignEmbeddedLinkUrl":{"type":"string","description":"Sample URL that appears in messages. Provide when campaignEmbeddedLink is true."},"campaignEmbeddedPhone":{"type":"boolean","description":"Whether campaign messages include phone numbers."},"campaignAgeGated":{"type":"boolean","description":"Whether campaign content is age-restricted (18+)."},"campaignDirectLending":{"type":"boolean","description":"Whether the campaign relates to direct lending or loan products."},"campaignPrivacyPolicyLink":{"type":"string","description":"Public URL of the privacy policy that covers this SMS program."},"campaignTermsAndConditionsLink":{"type":"string","description":"Public URL of the terms and conditions that cover this SMS program."},"campaignUsecase":{"type":"string","description":"10DLC campaign use case submitted to carriers. Required before carrier submission. One of 2FA, ACCOUNT_NOTIFICATION, CUSTOMER_CARE, DELIVERY_NOTIFICATION, FRAUD_ALERT, MARKETING, MIXED, POLLING_VOTING, PUBLIC_SERVICE_ANNOUNCEMENT, or SECURITY_ALERT. For MIXED, append comma-separated sub-use cases after MIXED (sub-use cases cannot include MIXED), for example MIXED,2FA,ACCOUNT_NOTIFICATION."},"campaignStatus":{"type":"string","enum":["not_started","in_progress","pending_review","approved","rejected","info_needed"],"description":"Pingram-side 10DLC registration workflow status (brand or campaign).\n- not_started: no customer submission yet\n- pending_review: customer submitted; Pingram has not submitted to carriers\n- in_progress: submitted for carrier review\n- approved | rejected | info_needed: review outcome"}},"additionalProperties":false,"description":"Request body for PATCH /registrations/us/10dlc/campaign/admin"},"TenDlcCampaignRegistration":{"type":"object","properties":{"accountId":{"type":"string"},"campaignStatus":{"type":"string","enum":["not_started","in_progress","pending_review","approved","rejected","info_needed"],"description":"Pingram-side 10DLC registration workflow status (brand or campaign).\n- not_started: no customer submission yet\n- pending_review: customer submitted; Pingram has not submitted to carriers\n- in_progress: submitted for carrier review\n- approved | rejected | info_needed: review outcome"},"campaignDescription":{"type":"string","description":"Summary of what this campaign sends and why, including audience and typical message content. Required before carrier submission."},"campaignSample1":{"type":"string","description":"Example SMS that represents actual campaign traffic. Required before carrier submission. Should match the use case and typically identify the brand and include STOP/HELP language."},"campaignSample2":{"type":"string","description":"Second example SMS. Required before carrier submission. Required for MARKETING and MIXED use cases."},"campaignSample3":{"type":"string","description":"Optional third example SMS."},"campaignSample4":{"type":"string","description":"Optional fourth example SMS."},"campaignMessageFlow":{"type":"string","description":"How recipients opt in (for example website form, checkout, or keyword). Describe the call-to-action and where consent is collected. Required before carrier submission."},"campaignOptinKeywords":{"type":"string","description":"Extra opt-in keywords as a comma-separated list. START is always included."},"campaignOptinMessage":{"type":"string","description":"Auto-reply sent when a recipient opts in. Required before carrier submission. Should confirm the subscription, mention message frequency, and include STOP and HELP instructions."},"campaignOptoutKeywords":{"type":"string","description":"Extra opt-out keywords as a comma-separated list. STOP is always included."},"campaignOptoutMessage":{"type":"string","description":"Auto-reply sent when a recipient opts out. Required before carrier submission. Should confirm they will receive no further messages."},"campaignHelpKeywords":{"type":"string","description":"Extra help keywords as a comma-separated list. HELP is always included."},"campaignHelpMessage":{"type":"string","description":"Auto-reply sent when a recipient texts a help keyword. Required before carrier submission. Should include a support contact (email and/or phone)."},"campaignEmbeddedLink":{"type":"boolean","description":"Whether campaign messages include URLs."},"campaignEmbeddedLinkUrl":{"type":"string","description":"Sample URL that appears in messages. Provide when campaignEmbeddedLink is true."},"campaignEmbeddedPhone":{"type":"boolean","description":"Whether campaign messages include phone numbers."},"campaignAgeGated":{"type":"boolean","description":"Whether campaign content is age-restricted (18+)."},"campaignDirectLending":{"type":"boolean","description":"Whether the campaign relates to direct lending or loan products."},"campaignPrivacyPolicyLink":{"type":"string","description":"Public URL of the privacy policy that covers this SMS program."},"campaignTermsAndConditionsLink":{"type":"string","description":"Public URL of the terms and conditions that cover this SMS program."},"campaignUsecase":{"type":"string","description":"10DLC campaign use case submitted to carriers. Required before carrier submission. One of 2FA, ACCOUNT_NOTIFICATION, CUSTOMER_CARE, DELIVERY_NOTIFICATION, FRAUD_ALERT, MARKETING, MIXED, POLLING_VOTING, PUBLIC_SERVICE_ANNOUNCEMENT, or SECURITY_ALERT. For MIXED, append comma-separated sub-use cases after MIXED (sub-use cases cannot include MIXED), for example MIXED,2FA,ACCOUNT_NOTIFICATION."},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["accountId","campaignStatus","createdAt","updatedAt"],"additionalProperties":false,"description":"Public response type for 10DLC campaign registration"},"TenDlcCampaignRegistrationDetails":{"type":"object","properties":{"accountId":{"type":"string"},"campaignStatus":{"type":"string","enum":["not_started","in_progress","pending_review","approved","rejected","info_needed"],"description":"Pingram-side 10DLC registration workflow status (brand or campaign).\n- not_started: no customer submission yet\n- pending_review: customer submitted; Pingram has not submitted to carriers\n- in_progress: submitted for carrier review\n- approved | rejected | info_needed: review outcome"},"campaignDescription":{"type":"string","description":"Summary of what this campaign sends and why, including audience and typical message content. Required before carrier submission."},"campaignSample1":{"type":"string","description":"Example SMS that represents actual campaign traffic. Required before carrier submission. Should match the use case and typically identify the brand and include STOP/HELP language."},"campaignSample2":{"type":"string","description":"Second example SMS. Required before carrier submission. Required for MARKETING and MIXED use cases."},"campaignSample3":{"type":"string","description":"Optional third example SMS."},"campaignSample4":{"type":"string","description":"Optional fourth example SMS."},"campaignMessageFlow":{"type":"string","description":"How recipients opt in (for example website form, checkout, or keyword). Describe the call-to-action and where consent is collected. Required before carrier submission."},"campaignOptinKeywords":{"type":"string","description":"Extra opt-in keywords as a comma-separated list. START is always included."},"campaignOptinMessage":{"type":"string","description":"Auto-reply sent when a recipient opts in. Required before carrier submission. Should confirm the subscription, mention message frequency, and include STOP and HELP instructions."},"campaignOptoutKeywords":{"type":"string","description":"Extra opt-out keywords as a comma-separated list. STOP is always included."},"campaignOptoutMessage":{"type":"string","description":"Auto-reply sent when a recipient opts out. Required before carrier submission. Should confirm they will receive no further messages."},"campaignHelpKeywords":{"type":"string","description":"Extra help keywords as a comma-separated list. HELP is always included."},"campaignHelpMessage":{"type":"string","description":"Auto-reply sent when a recipient texts a help keyword. Required before carrier submission. Should include a support contact (email and/or phone)."},"campaignEmbeddedLink":{"type":"boolean","description":"Whether campaign messages include URLs."},"campaignEmbeddedLinkUrl":{"type":"string","description":"Sample URL that appears in messages. Provide when campaignEmbeddedLink is true."},"campaignEmbeddedPhone":{"type":"boolean","description":"Whether campaign messages include phone numbers."},"campaignAgeGated":{"type":"boolean","description":"Whether campaign content is age-restricted (18+)."},"campaignDirectLending":{"type":"boolean","description":"Whether the campaign relates to direct lending or loan products."},"campaignPrivacyPolicyLink":{"type":"string","description":"Public URL of the privacy policy that covers this SMS program."},"campaignTermsAndConditionsLink":{"type":"string","description":"Public URL of the terms and conditions that cover this SMS program."},"campaignUsecase":{"type":"string","description":"10DLC campaign use case submitted to carriers. Required before carrier submission. One of 2FA, ACCOUNT_NOTIFICATION, CUSTOMER_CARE, DELIVERY_NOTIFICATION, FRAUD_ALERT, MARKETING, MIXED, POLLING_VOTING, PUBLIC_SERVICE_ANNOUNCEMENT, or SECURITY_ALERT. For MIXED, append comma-separated sub-use cases after MIXED (sub-use cases cannot include MIXED), for example MIXED,2FA,ACCOUNT_NOTIFICATION."},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"campaignId":{"type":"string"}},"additionalProperties":false,"required":["accountId","campaignStatus","createdAt","updatedAt"],"description":"Admin GET/PATCH response for 10DLC campaign registration"},"TenDlcCampaignUpdateRequest":{"type":"object","properties":{"campaignDescription":{"type":"string","description":"Summary of what this campaign sends and why, including audience and typical message content. Required before carrier submission."},"campaignSample1":{"type":"string","description":"Example SMS that represents actual campaign traffic. Required before carrier submission. Should match the use case and typically identify the brand and include STOP/HELP language."},"campaignSample2":{"type":"string","description":"Second example SMS. Required before carrier submission. Required for MARKETING and MIXED use cases."},"campaignSample3":{"type":"string","description":"Optional third example SMS."},"campaignSample4":{"type":"string","description":"Optional fourth example SMS."},"campaignMessageFlow":{"type":"string","description":"How recipients opt in (for example website form, checkout, or keyword). Describe the call-to-action and where consent is collected. Required before carrier submission."},"campaignOptinKeywords":{"type":"string","description":"Extra opt-in keywords as a comma-separated list. START is always included."},"campaignOptinMessage":{"type":"string","description":"Auto-reply sent when a recipient opts in. Required before carrier submission. Should confirm the subscription, mention message frequency, and include STOP and HELP instructions."},"campaignOptoutKeywords":{"type":"string","description":"Extra opt-out keywords as a comma-separated list. STOP is always included."},"campaignOptoutMessage":{"type":"string","description":"Auto-reply sent when a recipient opts out. Required before carrier submission. Should confirm they will receive no further messages."},"campaignHelpKeywords":{"type":"string","description":"Extra help keywords as a comma-separated list. HELP is always included."},"campaignHelpMessage":{"type":"string","description":"Auto-reply sent when a recipient texts a help keyword. Required before carrier submission. Should include a support contact (email and/or phone)."},"campaignEmbeddedLink":{"type":"boolean","description":"Whether campaign messages include URLs."},"campaignEmbeddedLinkUrl":{"type":"string","description":"Sample URL that appears in messages. Provide when campaignEmbeddedLink is true."},"campaignEmbeddedPhone":{"type":"boolean","description":"Whether campaign messages include phone numbers."},"campaignAgeGated":{"type":"boolean","description":"Whether campaign content is age-restricted (18+)."},"campaignDirectLending":{"type":"boolean","description":"Whether the campaign relates to direct lending or loan products."},"campaignPrivacyPolicyLink":{"type":"string","description":"Public URL of the privacy policy that covers this SMS program."},"campaignTermsAndConditionsLink":{"type":"string","description":"Public URL of the terms and conditions that cover this SMS program."},"campaignUsecase":{"type":"string","description":"10DLC campaign use case submitted to carriers. Required before carrier submission. One of 2FA, ACCOUNT_NOTIFICATION, CUSTOMER_CARE, DELIVERY_NOTIFICATION, FRAUD_ALERT, MARKETING, MIXED, POLLING_VOTING, PUBLIC_SERVICE_ANNOUNCEMENT, or SECURITY_ALERT. For MIXED, append comma-separated sub-use cases after MIXED (sub-use cases cannot include MIXED), for example MIXED,2FA,ACCOUNT_NOTIFICATION."}},"additionalProperties":false,"description":"Request body for PATCH /registrations/us/10dlc/campaign"},"TransferCallRequest":{"type":"object","properties":{"to":{"type":"string","description":"E.164 number to move the caller to."},"holdSay":{"type":"string","description":"Spoken once to the caller while they wait. If holdAudio is also set, this sentence plays first and then the audio."},"holdAudio":{"type":"string","description":"`builtin:soft-piano`, `builtin:calm`, `builtin:bright`, or an HTTPS MP3 or WAV. Loops until the call connects. Omit it and the caller hears ringing."},"receiverSay":{"type":"string","description":"Spoken to the person who answers, before the caller is connected."}},"required":["to"],"additionalProperties":false,"description":"Body for POST /voice/calls/{trackingId}/transfer."},"UnknownJson":{"type":"object","additionalProperties":{}},"UpdateAccountRequest":{"type":"object","properties":{"name":{"type":"string","description":"Display name for this account.","minLength":1,"maxLength":80}},"required":["name"],"additionalProperties":false,"description":"PATCH /accounts/{accountId} request: change the account display name."},"UpdateBillingEmailRequest":{"type":"object","properties":{"email":{"type":"string","description":"Address that receives invoices and receipts.","minLength":3,"maxLength":320}},"required":["email"],"additionalProperties":false,"description":"PATCH /account/billing-email request."},"UpdateBroadcastRequest":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"channel":{"type":"string","enum":["email"]},"audience":{"type":"object","properties":{"filter":{"type":"object","additionalProperties":{}},"emails":{"type":"array","items":{"type":"string"}}},"additionalProperties":false,"description":"Broadcast audience: exactly one of `filter` (Mongo-style query evaluated against synced user objects) or `emails` (raw list, max 10,000 addresses; for larger audiences use filter after syncing users via the Users API)."},"fromName":{"type":"string"},"fromAddress":{"type":"string","description":"From address. Use an address on a domain verified for this account to email other people. The shared address `noreply@pingram.io` can send a test broadcast only to your own account email as the sole recipient. Verify a domain to send to a wider audience."},"replyToAddress":{"type":"string","description":"Omit to leave unchanged. Empty string clears Reply-To."},"subject":{"type":"string"},"html":{"type":"string"},"internalTemplate":{"type":"string","description":"Visual-editor source. Send with html to add it to an html-only draft or to update it. Cannot be removed."}},"additionalProperties":false},"User":{"type":"object","properties":{"id":{"type":"string","description":"Unique user identifier. Required."},"email":{"type":"string","description":"User's email address for email notifications."},"number":{"type":"string","description":"User's phone number for SMS/call notifications."},"pushTokens":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["FCM","APN"]},"token":{"type":"string"},"device":{"type":"object","properties":{"app_id":{"type":"string"},"ad_id":{"type":"string"},"device_id":{"type":"string"},"platform":{"type":"string"},"manufacturer":{"type":"string"},"model":{"type":"string"}},"required":["device_id"],"additionalProperties":false},"environment":{"type":"string","description":"used by APN to differentiate between sandbox and production builds (sandbox/undefined or production)","default":"undefined"}},"required":["type","token","device"],"additionalProperties":false},"description":"Mobile push tokens (FCM, APN) for push notifications."},"webPushTokens":{"type":"array","items":{"type":"object","properties":{"sub":{"type":"object","properties":{"endpoint":{"type":"string"},"keys":{"type":"object","properties":{"p256dh":{"type":"string"},"auth":{"type":"string"}},"required":["p256dh","auth"],"additionalProperties":false}},"required":["endpoint","keys"],"additionalProperties":false,"description":"Configuration for a Push Subscription. This can be obtained on the frontend by calling serviceWorkerRegistration.pushManager.subscribe(). The expected format is the same output as JSON.stringify'ing a PushSubscription in the browser."}},"required":["sub"],"additionalProperties":false},"description":"Web push subscription config from the browser."},"timezone":{"type":"string","description":"User's timezone (e.g. \"America/New_York\") for scheduling."},"slackChannel":{"type":"string","description":"The destination channel of slack notifications sent to this user. Can be either of the following:\n- Channel name, e.g. \"test\"\n- Channel name with # prefix, e.g. \"#test\"\n- Channel ID, e.g. \"C1234567890\"\n- User ID for DM, e.g. \"U1234567890\"\n- Username with @ prefix, e.g. \"@test\""},"slackToken":{"type":"object","additionalProperties":false,"properties":{"access_token":{"type":"string"},"app_id":{"type":"string"},"authed_user":{"type":"object","properties":{"access_token":{"type":"string"},"expires_in":{"type":"number"},"id":{"type":"string"},"refresh_token":{"type":"string"},"scope":{"type":"string"},"token_type":{"type":"string"}},"additionalProperties":false},"bot_user_id":{"type":"string"},"enterprise":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"additionalProperties":false},"error":{"type":"string"},"expires_in":{"type":"number"},"incoming_webhook":{"type":"object","properties":{"channel":{"type":"string"},"channel_id":{"type":"string"},"configuration_url":{"type":"string"},"url":{"type":"string"}},"additionalProperties":false},"is_enterprise_install":{"type":"boolean"},"needed":{"type":"string"},"ok":{"type":"boolean"},"provided":{"type":"string"},"refresh_token":{"type":"string"},"scope":{"type":"string"},"team":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"additionalProperties":false},"token_type":{"type":"string"},"warning":{"type":"string"},"response_metadata":{"type":"object","properties":{"warnings":{"type":"array","items":{"type":"string"}},"next_cursor":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"acceptedScopes":{"type":"array","items":{"type":"string"}},"retryAfter":{"type":"number"},"messages":{"type":"array","items":{"type":"string"}}},"additionalProperties":false}},"required":["ok"]},"properties":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},"description":"Custom key-value properties synced by the developer, used for audience segmentation (e.g. broadcast filters on user.properties.plan). Incremental identify calls shallow-merge keys (unset keys are preserved). Limits: max 25 keys, key length <= 64, string values <= 256 chars, serialized size <= 1KB."},"lastSeenTime":{"type":"string","description":"Last activity timestamp. Updated automatically. Read-only."},"updatedAt":{"type":"string","description":"Last update timestamp. Read-only."},"createdAt":{"type":"string","description":"Creation timestamp. Read-only."},"emailSuppressionStatus":{"type":"object","properties":{"reason":{"type":"string","enum":["Bounce","Complaint"]},"details":{"type":"object"}},"required":["reason","details"],"additionalProperties":false,"description":"Bounce or complaint status if email was suppressed. Read-only."}},"required":["id"],"additionalProperties":false},"UserPreferencesGETResponse":{"type":"object","properties":{"preferences":{"type":"array","items":{"type":"object","properties":{"notificationId":{"type":"string"},"channel":{"$ref":"#/components/schemas/ChannelsEnum"},"delivery":{"type":"string","enum":["off","instant","hourly","daily","weekly","monthly"]},"subNotificationId":{"type":"string"}},"required":["notificationId","channel","delivery"],"additionalProperties":false}},"notifications":{"type":"array","items":{"type":"object","properties":{"notificationId":{"type":"string"},"title":{"type":"string"},"channels":{"type":"array","items":{"$ref":"#/components/schemas/ChannelsEnum"}},"options":{"type":"object","properties":{"EMAIL":{"type":"object","properties":{"defaultDeliveryOption":{"type":"string","enum":["off","instant","hourly","daily","weekly","monthly"]},"off":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"instant":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"hourly":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"daily":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"weekly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"day":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"monthly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"date":{"type":"string","enum":["first","last"]}},"required":["enabled"],"additionalProperties":false}},"required":["defaultDeliveryOption"],"additionalProperties":false},"INAPP_WEB":{"type":"object","properties":{"defaultDeliveryOption":{"type":"string","enum":["off","instant"]},"off":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"instant":{"type":"object","properties":{"enabled":{"type":"boolean"},"batching":{"type":"boolean"},"batchingKey":{"type":"string"},"batchingWindow":{"type":"number"}},"required":["enabled"],"additionalProperties":false}},"required":["defaultDeliveryOption"],"additionalProperties":false},"SMS":{"type":"object","properties":{"defaultDeliveryOption":{"type":"string","enum":["off","instant","hourly","daily","weekly","monthly"]},"off":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"instant":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"hourly":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"daily":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"weekly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"day":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"monthly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"date":{"type":"string","enum":["first","last"]}},"required":["enabled"],"additionalProperties":false}},"required":["defaultDeliveryOption"],"additionalProperties":false},"CALL":{"type":"object","properties":{"defaultDeliveryOption":{"type":"string","enum":["off","instant","hourly","daily","weekly","monthly"]},"off":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"instant":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"hourly":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"daily":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"weekly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"day":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"monthly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"date":{"type":"string","enum":["first","last"]}},"required":["enabled"],"additionalProperties":false}},"required":["defaultDeliveryOption"],"additionalProperties":false},"VOICE":{"type":"object","properties":{"defaultDeliveryOption":{"type":"string","enum":["off","instant","hourly","daily","weekly","monthly"]},"off":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"instant":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"hourly":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"daily":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"weekly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"day":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"monthly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"date":{"type":"string","enum":["first","last"]}},"required":["enabled"],"additionalProperties":false}},"required":["defaultDeliveryOption"],"additionalProperties":false},"PUSH":{"type":"object","properties":{"defaultDeliveryOption":{"type":"string","enum":["off","instant","hourly","daily","weekly","monthly"]},"off":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"instant":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"hourly":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"daily":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"weekly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"day":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"monthly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"date":{"type":"string","enum":["first","last"]}},"required":["enabled"],"additionalProperties":false}},"required":["defaultDeliveryOption"],"additionalProperties":false},"WEB_PUSH":{"type":"object","properties":{"defaultDeliveryOption":{"type":"string","enum":["off","instant","hourly","daily","weekly","monthly"]},"off":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"instant":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"hourly":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"daily":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"weekly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"day":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"monthly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"date":{"type":"string","enum":["first","last"]}},"required":["enabled"],"additionalProperties":false}},"required":["defaultDeliveryOption"],"additionalProperties":false},"SLACK":{"type":"object","properties":{"defaultDeliveryOption":{"type":"string","enum":["off","instant","hourly","daily","weekly","monthly"]},"off":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"instant":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"hourly":{"type":"object","properties":{"enabled":{"type":"boolean"}},"required":["enabled"],"additionalProperties":false},"daily":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"weekly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"day":{"type":"string"}},"required":["enabled"],"additionalProperties":false},"monthly":{"type":"object","properties":{"enabled":{"type":"boolean"},"hour":{"type":"string"},"date":{"type":"string","enum":["first","last"]}},"required":["enabled"],"additionalProperties":false}},"required":["defaultDeliveryOption"],"additionalProperties":false}},"additionalProperties":false}},"required":["notificationId","title","channels"],"additionalProperties":false}},"subNotifications":{"type":"array","items":{"type":"object","properties":{"notificationId":{"type":"string"},"subNotificationId":{"type":"string"},"title":{"type":"string"}},"required":["notificationId","subNotificationId","title"],"additionalProperties":false}}},"required":["preferences","notifications","subNotifications"],"additionalProperties":false},"UserPreferencesPOSTRequest":{"type":"array","items":{"type":"object","properties":{"notificationId":{"type":"string"},"subNotificationId":{"type":"string"},"channel":{"$ref":"#/components/schemas/ChannelsEnum"},"state":{"type":"boolean"},"delivery":{"type":"string","enum":["off","instant","hourly","daily","weekly","monthly"]}},"required":["notificationId","subNotificationId","channel"],"additionalProperties":false}},"UserPreferencesPOSTResponse":{"type":"array","items":{"type":"object","properties":{"envId":{"type":"string"},"userId":{"type":"string"},"notificationId":{"type":"string"},"subNotificationId":{"type":"string"},"channelsStates":{"type":"array","items":{"type":"object","properties":{"channel":{"$ref":"#/components/schemas/ChannelsEnum"},"state":{"type":"boolean"},"delivery":{"type":"string","enum":["off","instant","hourly","daily","weekly","monthly"]}},"required":["channel","state","delivery"],"additionalProperties":false}}},"required":["envId","userId","notificationId","subNotificationId"],"additionalProperties":false}},"UserSuppressionDeleteResponse":{"type":"object","properties":{"user":{"type":"object","properties":{"id":{"type":"string","description":"Unique user identifier. Required."},"email":{"type":"string","description":"User's email address for email notifications."},"number":{"type":"string","description":"User's phone number for SMS/call notifications."},"pushTokens":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["FCM","APN"]},"token":{"type":"string"},"device":{"type":"object","properties":{"app_id":{"type":"string"},"ad_id":{"type":"string"},"device_id":{"type":"string"},"platform":{"type":"string"},"manufacturer":{"type":"string"},"model":{"type":"string"}},"required":["device_id"],"additionalProperties":false},"environment":{"type":"string","description":"used by APN to differentiate between sandbox and production builds (sandbox/undefined or production)","default":"undefined"}},"required":["type","token","device"],"additionalProperties":false},"description":"Mobile push tokens (FCM, APN) for push notifications."},"webPushTokens":{"type":"array","items":{"type":"object","properties":{"sub":{"type":"object","properties":{"endpoint":{"type":"string"},"keys":{"type":"object","properties":{"p256dh":{"type":"string"},"auth":{"type":"string"}},"required":["p256dh","auth"],"additionalProperties":false}},"required":["endpoint","keys"],"additionalProperties":false,"description":"Configuration for a Push Subscription. This can be obtained on the frontend by calling serviceWorkerRegistration.pushManager.subscribe(). The expected format is the same output as JSON.stringify'ing a PushSubscription in the browser."}},"required":["sub"],"additionalProperties":false},"description":"Web push subscription config from the browser."},"timezone":{"type":"string","description":"User's timezone (e.g. \"America/New_York\") for scheduling."},"slackChannel":{"type":"string","description":"The destination channel of slack notifications sent to this user. Can be either of the following:\n- Channel name, e.g. \"test\"\n- Channel name with # prefix, e.g. \"#test\"\n- Channel ID, e.g. \"C1234567890\"\n- User ID for DM, e.g. \"U1234567890\"\n- Username with @ prefix, e.g. \"@test\""},"slackToken":{"type":"object","additionalProperties":false,"properties":{"access_token":{"type":"string"},"app_id":{"type":"string"},"authed_user":{"type":"object","properties":{"access_token":{"type":"string"},"expires_in":{"type":"number"},"id":{"type":"string"},"refresh_token":{"type":"string"},"scope":{"type":"string"},"token_type":{"type":"string"}},"additionalProperties":false},"bot_user_id":{"type":"string"},"enterprise":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"additionalProperties":false},"error":{"type":"string"},"expires_in":{"type":"number"},"incoming_webhook":{"type":"object","properties":{"channel":{"type":"string"},"channel_id":{"type":"string"},"configuration_url":{"type":"string"},"url":{"type":"string"}},"additionalProperties":false},"is_enterprise_install":{"type":"boolean"},"needed":{"type":"string"},"ok":{"type":"boolean"},"provided":{"type":"string"},"refresh_token":{"type":"string"},"scope":{"type":"string"},"team":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"additionalProperties":false},"token_type":{"type":"string"},"warning":{"type":"string"},"response_metadata":{"type":"object","properties":{"warnings":{"type":"array","items":{"type":"string"}},"next_cursor":{"type":"string"},"scopes":{"type":"array","items":{"type":"string"}},"acceptedScopes":{"type":"array","items":{"type":"string"}},"retryAfter":{"type":"number"},"messages":{"type":"array","items":{"type":"string"}}},"additionalProperties":false}},"required":["ok"]},"properties":{"type":"object","additionalProperties":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"}]},"description":"Custom key-value properties synced by the developer, used for audience segmentation (e.g. broadcast filters on user.properties.plan). Incremental identify calls shallow-merge keys (unset keys are preserved). Limits: max 25 keys, key length <= 64, string values <= 256 chars, serialized size <= 1KB."},"lastSeenTime":{"type":"string","description":"Last activity timestamp. Updated automatically. Read-only."},"updatedAt":{"type":"string","description":"Last update timestamp. Read-only."},"createdAt":{"type":"string","description":"Creation timestamp. Read-only."},"emailSuppressionStatus":{"type":"object","properties":{"reason":{"type":"string","enum":["Bounce","Complaint"]},"details":{"type":"object"}},"required":["reason","details"],"additionalProperties":false,"description":"Bounce or complaint status if email was suppressed. Read-only."}},"required":["id"],"additionalProperties":false}},"required":["user"],"additionalProperties":false},"VoiceBrowserCallRequest":{"type":"object","properties":{"config":{"anyOf":[{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["script"]},"steps":{"type":"array","items":{"type":"object","properties":{"verb":{"type":"string","enum":["Say"]},"text":{"type":"string"}},"required":["verb","text"],"additionalProperties":false,"description":"One spoken line."}},"voicemailAction":{"type":"string","enum":["hangup","message","continue"],"description":"What to do when an answering machine picks up. hangup ends the call, message plays voicemailMessage, continue keeps talking. Default: continue."},"voicemailMessage":{"type":"string"},"stream":{"type":"object","properties":{"audio":{"type":"boolean","description":"Live call audio. Omitted means off."},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"What the call socket carries. Omitted means the socket is open and carries neither."},"privacy":{"type":"object","properties":{"record":{"type":"boolean"},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"Omitted record and transcript mean both are off."}},"required":["type","steps"],"additionalProperties":false,"title":"Script"},{"type":"object","properties":{"type":{"type":"string","enum":["agent"]},"opener":{"type":"string"},"voicemailAction":{"type":"string","enum":["hangup","message","continue"],"description":"What to do when an answering machine picks up. hangup ends the call, message plays voicemailMessage, continue keeps talking. Default: continue."},"voicemailMessage":{"type":"string"},"agent":{"type":"object","properties":{"instructions":{"type":"string"},"model":{"description":"Configuration for which model processes the call, including its voice settings. `model` chooses the realtime model. `voiceId` must be a voice offered by that model.","oneOf":[{"type":"object","additionalProperties":false,"properties":{"effort":{"type":"string","enum":["minimal","low","medium","high","xhigh"]},"model":{"type":"string","enum":["openai:gpt-realtime-2.1"],"description":"Which realtime model processes the call."},"voiceId":{"type":"string","enum":["alloy","ash","ballad","coral","echo","sage","shimmer","verse","marin","cedar"]},"temperature":{"type":"number","description":"How varied replies are. 0 is focused, 1 is more creative. Default: 0.8."},"maxTokens":{"type":"number","description":"Maximum length of one reply, in tokens. Default: 4096."}},"required":["model"],"title":"OpenaiGptRealtime21"},{"type":"object","additionalProperties":false,"properties":{"effort":{"type":"string","enum":["minimal","low","medium","high","xhigh"]},"model":{"type":"string","enum":["openai:gpt-realtime-2.1-mini"],"description":"Which realtime model processes the call."},"voiceId":{"type":"string","enum":["alloy","ash","ballad","coral","echo","sage","shimmer","verse","marin","cedar"]},"temperature":{"type":"number","description":"How varied replies are. 0 is focused, 1 is more creative. Default: 0.8."},"maxTokens":{"type":"number","description":"Maximum length of one reply, in tokens. Default: 4096."}},"required":["model"],"title":"OpenaiGptRealtime21Mini"},{"type":"object","additionalProperties":false,"properties":{"effort":{"type":"string","enum":["none","low","medium","high","xhigh","max"]},"model":{"type":"string","enum":["openai:gpt-live-1"],"description":"Which realtime model processes the call."},"voiceId":{"type":"string","enum":["alloy","ash","ballad","coral","echo","sage","shimmer","verse","marin","cedar","quartz","ripple","vesper","willow","stone","gleam","meridian","bossa","tempo","beacon","delta","cinder"]},"temperature":{"type":"number","description":"How varied replies are. 0 is focused, 1 is more creative. Default: 0.8."},"maxTokens":{"type":"number","description":"Maximum length of one reply, in tokens. Default: 4096."}},"required":["model"],"title":"OpenaiGptLive1"},{"type":"object","additionalProperties":false,"properties":{"effort":{"type":"string","enum":["minimal","low","medium","high"]},"model":{"type":"string","enum":["google:gemini-3.1-flash-live-preview"],"description":"Which realtime model processes the call."},"voiceId":{"type":"string","enum":["Puck","Charon","Kore","Fenrir","Aoede","Leda","Orus","Zephyr"]},"temperature":{"type":"number","description":"How varied replies are. 0 is focused, 1 is more creative. Default: 0.8."},"maxTokens":{"type":"number","description":"Maximum length of one reply, in tokens. Default: 4096."}},"required":["model"],"title":"GoogleGemini31FlashLivePreview"},{"type":"object","additionalProperties":false,"properties":{"model":{"type":"string","enum":["xai:grok-voice-latest"],"description":"Which realtime model processes the call."},"voiceId":{"type":"string","enum":["eve","ara","rex","sal","leo"]},"temperature":{"type":"number","description":"How varied replies are. 0 is focused, 1 is more creative. Default: 0.8."},"maxTokens":{"type":"number","description":"Maximum length of one reply, in tokens. Default: 4096."}},"required":["model"],"title":"XaiGrokVoiceLatest"},{"type":"object","additionalProperties":false,"properties":{"language":{"type":"string","enum":["en","ar","bg","zh","hr","cs","da","nl","fil","fi","fr","de","el","he","hi","hu","id","it","ja","ko","ms","no","pl","pt","ro","ru","sk","es","sv","ta","tr","uk","vi"]},"model":{"type":"string","enum":["elevenlabs:eleven_realtime_v1_mini"],"description":"Which realtime model processes the call."},"voiceId":{"type":"string","enum":["brian","rachel","adam","antoni","elli","josh","bella","charlotte","dTmTLshIypwp08eftJH6","M8xXPW1xIZVqZLxYby5T","KbgdAMqTSb5aaLUaXEm2"]},"temperature":{"type":"number","description":"How varied replies are. 0 is focused, 1 is more creative. Default: 0.8."},"maxTokens":{"type":"number","description":"Maximum length of one reply, in tokens. Default: 4096."}},"required":["model"],"title":"ElevenlabsElevenRealtimeV1Mini"},{"type":"object","additionalProperties":false,"properties":{"language":{"type":"string","enum":["en","ar","bg","zh","hr","cs","da","nl","fil","fi","fr","de","el","he","hi","hu","id","it","ja","ko","ms","no","pl","pt","ro","ru","sk","es","sv","ta","tr","uk","vi"]},"model":{"type":"string","enum":["elevenlabs:eleven_realtime_v1_max"],"description":"Which realtime model processes the call."},"voiceId":{"type":"string","enum":["brian","rachel","adam","antoni","elli","josh","bella","charlotte","dTmTLshIypwp08eftJH6","M8xXPW1xIZVqZLxYby5T","KbgdAMqTSb5aaLUaXEm2"]},"temperature":{"type":"number","description":"How varied replies are. 0 is focused, 1 is more creative. Default: 0.8."},"maxTokens":{"type":"number","description":"Maximum length of one reply, in tokens. Default: 4096."}},"required":["model"],"title":"ElevenlabsElevenRealtimeV1Max"}]},"tools":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["transfer"],"description":"Transfer the live call to one of destinations."},"destinations":{"type":"array","items":{"type":"object","properties":{"phoneNumber":{"type":"string","description":"E.164 number to transfer the caller to."},"condition":{"type":"string","description":"When the model should choose this number. Required when more than one destination is set."},"holdSay":{"type":"string","description":"Spoken once to the caller while they wait. If holdAudio is also set, this sentence plays first and then the audio."},"holdAudio":{"type":"string","description":"`builtin:soft-piano`, `builtin:calm`, `builtin:bright`, or an HTTPS MP3 or WAV. Loops until the call connects. Omit it and the caller hears ringing."},"receiverInstruction":{"type":"string","description":"Shown to the agent with this number. Tells it whether and how to write the sentence spoken to the person who answers. Never spoken. Omit it and the agent is asked to say who is calling and why."}},"required":["phoneNumber","condition"],"additionalProperties":false},"description":"Numbers the agent can transfer to. Set a condition on each when there is more than one."}},"required":["type","destinations"],"additionalProperties":false,"description":"Transfer the caller to a phone number.","title":"Transfer"},{"type":"object","properties":{"type":{"type":"string","enum":["dtmf"],"description":"Send DTMF keypad tones during the call."}},"required":["type"],"additionalProperties":false,"description":"Let the agent send keypad tones.","title":"Dtmf"},{"type":"object","properties":{"type":{"type":"string","enum":["disconnect"],"description":"End the call after saying goodbye."}},"required":["type"],"additionalProperties":false,"description":"Let the agent hang up.","title":"Disconnect"},{"type":"object","properties":{"type":{"type":"string","enum":["weather"],"description":"Current weather for a city the caller names."}},"required":["type"],"additionalProperties":false,"description":"Look up the current weather for a city.","title":"Weather"},{"type":"object","properties":{"type":{"type":"string","enum":["custom"],"description":"Invoke an HTTPS webhook when the model calls this tool."},"name":{"type":"string","description":"Function name the model calls."},"description":{"type":"string","description":"When the model should use this tool."},"parameters":{"type":"object","additionalProperties":{},"description":"JSON Schema for the arguments the model passes."},"url":{"type":"string","description":"HTTPS webhook invoked when the model calls this tool during a call."},"beforeSpeech":{"type":"string","description":"Spoken before the webhook when this turn has not spoken yet."},"slowSpeechAfterSeconds":{"type":"number","description":"Wait this many seconds, then speak slowSpeech if the webhook is still running."},"slowSpeech":{"type":"string","description":"Spoken once when the webhook is still running after slowSpeechAfterSeconds."}},"required":["type","name","description","parameters"],"additionalProperties":false,"description":"Call an HTTPS webhook from the conversation.","title":"Custom"},{"type":"object","properties":{"type":{"type":"string","enum":["mcp"],"description":"Connect a remote MCP server and use its tools."},"url":{"type":"string","description":"MCP server URL."},"label":{"type":"string","description":"Optional name shown in the dashboard."}},"required":["type","url"],"additionalProperties":false,"description":"Load tools from a remote MCP server.","title":"Mcp"},{"type":"object","properties":{"type":{"type":"string","enum":["knowledge"],"description":"Search uploaded documents during the call."},"documents":{"type":"array","items":{"type":"object","properties":{"docId":{"type":"string","description":"Opaque identifier for an uploaded knowledge document."},"name":{"type":"string","description":"File name shown to the agent and in the dashboard."},"sizeBytes":{"type":"number","description":"File size in bytes."}},"required":["docId","name","sizeBytes"],"additionalProperties":false},"description":"Files the agent can search."}},"required":["type","documents"],"additionalProperties":false,"description":"Answer from uploaded documents.","title":"Knowledge"}]}},"variables":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"Placeholder name used inside {{name}} tags."},"description":{"type":"string","description":"What the value means. Passed to the model with the filled value."},"defaultValue":{"type":"string","description":"Used when the call does not pass this variable."}},"required":["name"],"additionalProperties":false}},"conversation":{"type":"object","properties":{"turnDetection":{"type":"string","enum":["semantic","vad"],"description":"How the agent decides the caller has finished speaking. Default: semantic."},"minEndOfTurnSilenceMs":{"type":"number","description":"Silence before the agent treats the turn as finished, in milliseconds. Default: 500."},"allowInterruptions":{"type":"boolean","description":"Whether the caller can interrupt the agent. Default: true."},"minInterruptionDurationMs":{"type":"number","description":"How long the caller must speak to count as an interruption, in milliseconds. Default: 300."},"silenceTimeoutSeconds":{"type":"number","description":"Seconds of silence before the agent hangs up. 0 never hangs up. Default: 30."},"maxCallLengthSeconds":{"type":"number","description":"Maximum call length in seconds. Default: 600."}},"additionalProperties":false,"description":"Turn-taking and call limits. Each omitted field uses its default."}},"required":["instructions","model"],"additionalProperties":false,"description":"Speech-to-speech block shared by inbound and outbound agent calls."},"stream":{"type":"object","properties":{"audio":{"type":"boolean","description":"Live call audio. Omitted means off."},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"What the call socket carries. Omitted means the socket is open and carries neither."},"privacy":{"type":"object","properties":{"record":{"type":"boolean"},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"Omitted record and transcript mean both are off."}},"required":["type","agent"],"additionalProperties":false,"title":"Agent"},{"type":"object","properties":{"type":{"type":"string","enum":["stream"]},"stream":{"type":"object","properties":{"audio":{"type":"boolean","description":"Live call audio. Omitted means off."},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"What the call socket carries. Omitted means the socket is open and carries neither."},"privacy":{"type":"object","properties":{"record":{"type":"boolean"},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"Omitted record and transcript mean both are off."}},"required":["type"],"additionalProperties":false,"description":"The customer's websocket is the application side. No script and no agent.","title":"Stream"},{"type":"object","properties":{"type":{"type":"string","enum":["elevenlabs"]},"stream":{"type":"object","properties":{"audio":{"type":"boolean","description":"Live call audio. Omitted means off."},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"What the call socket carries. Omitted means the socket is open and carries neither."},"privacy":{"type":"object","properties":{"record":{"type":"boolean"},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"Omitted record and transcript mean both are off."}},"required":["type"],"additionalProperties":false,"description":"Dial the destination, then SIP-transfer the answered call to ElevenLabs at the from number.","title":"Elevenlabs"}]},{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["script"]},"steps":{"type":"array","items":{"type":"object","properties":{"verb":{"type":"string","enum":["Say"]},"text":{"type":"string"}},"required":["verb","text"],"additionalProperties":false,"description":"One spoken line."}},"stream":{"type":"object","properties":{"audio":{"type":"boolean","description":"Live call audio. Omitted means off."},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"What the call socket carries. Omitted means the socket is open and carries neither."},"privacy":{"type":"object","properties":{"record":{"type":"boolean"},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"Omitted record and transcript mean both are off."}},"required":["type","steps"],"additionalProperties":false,"title":"Script"},{"type":"object","properties":{"type":{"type":"string","enum":["agent"]},"greeting":{"type":"string"},"agent":{"type":"object","properties":{"instructions":{"type":"string"},"model":{"description":"Configuration for which model processes the call, including its voice settings. `model` chooses the realtime model. `voiceId` must be a voice offered by that model.","oneOf":[{"type":"object","additionalProperties":false,"properties":{"effort":{"type":"string","enum":["minimal","low","medium","high","xhigh"]},"model":{"type":"string","enum":["openai:gpt-realtime-2.1"],"description":"Which realtime model processes the call."},"voiceId":{"type":"string","enum":["alloy","ash","ballad","coral","echo","sage","shimmer","verse","marin","cedar"]},"temperature":{"type":"number","description":"How varied replies are. 0 is focused, 1 is more creative. Default: 0.8."},"maxTokens":{"type":"number","description":"Maximum length of one reply, in tokens. Default: 4096."}},"required":["model"],"title":"OpenaiGptRealtime21"},{"type":"object","additionalProperties":false,"properties":{"effort":{"type":"string","enum":["minimal","low","medium","high","xhigh"]},"model":{"type":"string","enum":["openai:gpt-realtime-2.1-mini"],"description":"Which realtime model processes the call."},"voiceId":{"type":"string","enum":["alloy","ash","ballad","coral","echo","sage","shimmer","verse","marin","cedar"]},"temperature":{"type":"number","description":"How varied replies are. 0 is focused, 1 is more creative. Default: 0.8."},"maxTokens":{"type":"number","description":"Maximum length of one reply, in tokens. Default: 4096."}},"required":["model"],"title":"OpenaiGptRealtime21Mini"},{"type":"object","additionalProperties":false,"properties":{"effort":{"type":"string","enum":["none","low","medium","high","xhigh","max"]},"model":{"type":"string","enum":["openai:gpt-live-1"],"description":"Which realtime model processes the call."},"voiceId":{"type":"string","enum":["alloy","ash","ballad","coral","echo","sage","shimmer","verse","marin","cedar","quartz","ripple","vesper","willow","stone","gleam","meridian","bossa","tempo","beacon","delta","cinder"]},"temperature":{"type":"number","description":"How varied replies are. 0 is focused, 1 is more creative. Default: 0.8."},"maxTokens":{"type":"number","description":"Maximum length of one reply, in tokens. Default: 4096."}},"required":["model"],"title":"OpenaiGptLive1"},{"type":"object","additionalProperties":false,"properties":{"effort":{"type":"string","enum":["minimal","low","medium","high"]},"model":{"type":"string","enum":["google:gemini-3.1-flash-live-preview"],"description":"Which realtime model processes the call."},"voiceId":{"type":"string","enum":["Puck","Charon","Kore","Fenrir","Aoede","Leda","Orus","Zephyr"]},"temperature":{"type":"number","description":"How varied replies are. 0 is focused, 1 is more creative. Default: 0.8."},"maxTokens":{"type":"number","description":"Maximum length of one reply, in tokens. Default: 4096."}},"required":["model"],"title":"GoogleGemini31FlashLivePreview"},{"type":"object","additionalProperties":false,"properties":{"model":{"type":"string","enum":["xai:grok-voice-latest"],"description":"Which realtime model processes the call."},"voiceId":{"type":"string","enum":["eve","ara","rex","sal","leo"]},"temperature":{"type":"number","description":"How varied replies are. 0 is focused, 1 is more creative. Default: 0.8."},"maxTokens":{"type":"number","description":"Maximum length of one reply, in tokens. Default: 4096."}},"required":["model"],"title":"XaiGrokVoiceLatest"},{"type":"object","additionalProperties":false,"properties":{"language":{"type":"string","enum":["en","ar","bg","zh","hr","cs","da","nl","fil","fi","fr","de","el","he","hi","hu","id","it","ja","ko","ms","no","pl","pt","ro","ru","sk","es","sv","ta","tr","uk","vi"]},"model":{"type":"string","enum":["elevenlabs:eleven_realtime_v1_mini"],"description":"Which realtime model processes the call."},"voiceId":{"type":"string","enum":["brian","rachel","adam","antoni","elli","josh","bella","charlotte","dTmTLshIypwp08eftJH6","M8xXPW1xIZVqZLxYby5T","KbgdAMqTSb5aaLUaXEm2"]},"temperature":{"type":"number","description":"How varied replies are. 0 is focused, 1 is more creative. Default: 0.8."},"maxTokens":{"type":"number","description":"Maximum length of one reply, in tokens. Default: 4096."}},"required":["model"],"title":"ElevenlabsElevenRealtimeV1Mini"},{"type":"object","additionalProperties":false,"properties":{"language":{"type":"string","enum":["en","ar","bg","zh","hr","cs","da","nl","fil","fi","fr","de","el","he","hi","hu","id","it","ja","ko","ms","no","pl","pt","ro","ru","sk","es","sv","ta","tr","uk","vi"]},"model":{"type":"string","enum":["elevenlabs:eleven_realtime_v1_max"],"description":"Which realtime model processes the call."},"voiceId":{"type":"string","enum":["brian","rachel","adam","antoni","elli","josh","bella","charlotte","dTmTLshIypwp08eftJH6","M8xXPW1xIZVqZLxYby5T","KbgdAMqTSb5aaLUaXEm2"]},"temperature":{"type":"number","description":"How varied replies are. 0 is focused, 1 is more creative. Default: 0.8."},"maxTokens":{"type":"number","description":"Maximum length of one reply, in tokens. Default: 4096."}},"required":["model"],"title":"ElevenlabsElevenRealtimeV1Max"}]},"tools":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["transfer"],"description":"Transfer the live call to one of destinations."},"destinations":{"type":"array","items":{"type":"object","properties":{"phoneNumber":{"type":"string","description":"E.164 number to transfer the caller to."},"condition":{"type":"string","description":"When the model should choose this number. Required when more than one destination is set."},"holdSay":{"type":"string","description":"Spoken once to the caller while they wait. If holdAudio is also set, this sentence plays first and then the audio."},"holdAudio":{"type":"string","description":"`builtin:soft-piano`, `builtin:calm`, `builtin:bright`, or an HTTPS MP3 or WAV. Loops until the call connects. Omit it and the caller hears ringing."},"receiverInstruction":{"type":"string","description":"Shown to the agent with this number. Tells it whether and how to write the sentence spoken to the person who answers. Never spoken. Omit it and the agent is asked to say who is calling and why."}},"required":["phoneNumber","condition"],"additionalProperties":false},"description":"Numbers the agent can transfer to. Set a condition on each when there is more than one."}},"required":["type","destinations"],"additionalProperties":false,"description":"Transfer the caller to a phone number.","title":"Transfer"},{"type":"object","properties":{"type":{"type":"string","enum":["dtmf"],"description":"Send DTMF keypad tones during the call."}},"required":["type"],"additionalProperties":false,"description":"Let the agent send keypad tones.","title":"Dtmf"},{"type":"object","properties":{"type":{"type":"string","enum":["disconnect"],"description":"End the call after saying goodbye."}},"required":["type"],"additionalProperties":false,"description":"Let the agent hang up.","title":"Disconnect"},{"type":"object","properties":{"type":{"type":"string","enum":["weather"],"description":"Current weather for a city the caller names."}},"required":["type"],"additionalProperties":false,"description":"Look up the current weather for a city.","title":"Weather"},{"type":"object","properties":{"type":{"type":"string","enum":["custom"],"description":"Invoke an HTTPS webhook when the model calls this tool."},"name":{"type":"string","description":"Function name the model calls."},"description":{"type":"string","description":"When the model should use this tool."},"parameters":{"type":"object","additionalProperties":{},"description":"JSON Schema for the arguments the model passes."},"url":{"type":"string","description":"HTTPS webhook invoked when the model calls this tool during a call."},"beforeSpeech":{"type":"string","description":"Spoken before the webhook when this turn has not spoken yet."},"slowSpeechAfterSeconds":{"type":"number","description":"Wait this many seconds, then speak slowSpeech if the webhook is still running."},"slowSpeech":{"type":"string","description":"Spoken once when the webhook is still running after slowSpeechAfterSeconds."}},"required":["type","name","description","parameters"],"additionalProperties":false,"description":"Call an HTTPS webhook from the conversation.","title":"Custom"},{"type":"object","properties":{"type":{"type":"string","enum":["mcp"],"description":"Connect a remote MCP server and use its tools."},"url":{"type":"string","description":"MCP server URL."},"label":{"type":"string","description":"Optional name shown in the dashboard."}},"required":["type","url"],"additionalProperties":false,"description":"Load tools from a remote MCP server.","title":"Mcp"},{"type":"object","properties":{"type":{"type":"string","enum":["knowledge"],"description":"Search uploaded documents during the call."},"documents":{"type":"array","items":{"type":"object","properties":{"docId":{"type":"string","description":"Opaque identifier for an uploaded knowledge document."},"name":{"type":"string","description":"File name shown to the agent and in the dashboard."},"sizeBytes":{"type":"number","description":"File size in bytes."}},"required":["docId","name","sizeBytes"],"additionalProperties":false},"description":"Files the agent can search."}},"required":["type","documents"],"additionalProperties":false,"description":"Answer from uploaded documents.","title":"Knowledge"}]}},"variables":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"Placeholder name used inside {{name}} tags."},"description":{"type":"string","description":"What the value means. Passed to the model with the filled value."},"defaultValue":{"type":"string","description":"Used when the call does not pass this variable."}},"required":["name"],"additionalProperties":false}},"conversation":{"type":"object","properties":{"turnDetection":{"type":"string","enum":["semantic","vad"],"description":"How the agent decides the caller has finished speaking. Default: semantic."},"minEndOfTurnSilenceMs":{"type":"number","description":"Silence before the agent treats the turn as finished, in milliseconds. Default: 500."},"allowInterruptions":{"type":"boolean","description":"Whether the caller can interrupt the agent. Default: true."},"minInterruptionDurationMs":{"type":"number","description":"How long the caller must speak to count as an interruption, in milliseconds. Default: 300."},"silenceTimeoutSeconds":{"type":"number","description":"Seconds of silence before the agent hangs up. 0 never hangs up. Default: 30."},"maxCallLengthSeconds":{"type":"number","description":"Maximum call length in seconds. Default: 600."}},"additionalProperties":false,"description":"Turn-taking and call limits. Each omitted field uses its default."}},"required":["instructions","model"],"additionalProperties":false,"description":"Speech-to-speech block shared by inbound and outbound agent calls."},"stream":{"type":"object","properties":{"audio":{"type":"boolean","description":"Live call audio. Omitted means off."},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"What the call socket carries. Omitted means the socket is open and carries neither."},"privacy":{"type":"object","properties":{"record":{"type":"boolean"},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"Omitted record and transcript mean both are off."}},"required":["type","agent"],"additionalProperties":false,"title":"Agent"},{"type":"object","properties":{"type":{"type":"string","enum":["transfer"]},"to":{"type":"string"},"holdSay":{"type":"string","description":"Spoken once to the caller while they wait. If holdAudio is also set, this sentence plays first and then the audio."},"holdAudio":{"type":"string","description":"`builtin:soft-piano`, `builtin:calm`, `builtin:bright`, or an HTTPS MP3 or WAV. Loops until the call connects. Omit it and the caller hears ringing."},"receiverSay":{"type":"string","description":"Spoken to the person who answers, before the caller is connected."},"stream":{"type":"object","properties":{"audio":{"type":"boolean","description":"Live call audio. Omitted means off."},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"What the call socket carries. Omitted means the socket is open and carries neither."},"privacy":{"type":"object","properties":{"record":{"type":"boolean"},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"Omitted record and transcript mean both are off."}},"required":["type","to"],"additionalProperties":false,"title":"Transfer"},{"type":"object","properties":{"type":{"type":"string","enum":["elevenlabs"]},"stream":{"type":"object","properties":{"audio":{"type":"boolean","description":"Live call audio. Omitted means off."},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"What the call socket carries. Omitted means the socket is open and carries neither."},"privacy":{"type":"object","properties":{"record":{"type":"boolean"},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"Omitted record and transcript mean both are off."}},"required":["type"],"additionalProperties":false,"description":"Answer and SIP-transfer the caller to ElevenLabs. The destination is the called number.","title":"Elevenlabs"},{"type":"object","properties":{"type":{"type":"string","enum":["disabled"]}},"required":["type"],"additionalProperties":false,"title":"Disabled"},{"type":"object","properties":{"type":{"type":"string","enum":["stream"]},"stream":{"type":"object","properties":{"audio":{"type":"boolean","description":"Live call audio. Omitted means off."},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"What the call socket carries. Omitted means the socket is open and carries neither."},"privacy":{"type":"object","properties":{"record":{"type":"boolean"},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"Omitted record and transcript mean both are off."}},"required":["type"],"additionalProperties":false,"description":"The customer's websocket is the application side. No script and no agent.","title":"Stream"}]}],"description":"Agent behavior for this browser call. Script calls use POST /voice/call."},"variables":{"type":"object","additionalProperties":{"type":"string"},"description":"Optional per-call {{variable}} overrides for browser playground."},"direction":{"type":"string","enum":["inbound","outbound"],"description":"inbound speaks the greeting. outbound speaks the opener. Omitted means outbound."}},"required":["config"],"additionalProperties":false},"VoiceBrowserCallResponse":{"type":"object","properties":{"trackingId":{"type":"string"},"websocket":{"type":"string"},"token":{"type":"string"}},"required":["trackingId","websocket","token"],"additionalProperties":false},"VoiceCallRequest":{"type":"object","properties":{"to":{"type":"string","description":"E.164 number to dial."},"config":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["script"]},"steps":{"type":"array","items":{"type":"object","properties":{"verb":{"type":"string","enum":["Say"]},"text":{"type":"string"}},"required":["verb","text"],"additionalProperties":false,"description":"One spoken line."}},"voicemailAction":{"type":"string","enum":["hangup","message","continue"],"description":"What to do when an answering machine picks up. hangup ends the call, message plays voicemailMessage, continue keeps talking. Default: continue."},"voicemailMessage":{"type":"string"},"stream":{"type":"object","properties":{"audio":{"type":"boolean","description":"Live call audio. Omitted means off."},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"What the call socket carries. Omitted means the socket is open and carries neither."},"privacy":{"type":"object","properties":{"record":{"type":"boolean"},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"Omitted record and transcript mean both are off."}},"required":["type","steps"],"additionalProperties":false,"title":"Script"},{"type":"object","properties":{"type":{"type":"string","enum":["agent"]},"opener":{"type":"string"},"voicemailAction":{"type":"string","enum":["hangup","message","continue"],"description":"What to do when an answering machine picks up. hangup ends the call, message plays voicemailMessage, continue keeps talking. Default: continue."},"voicemailMessage":{"type":"string"},"agent":{"type":"object","properties":{"instructions":{"type":"string"},"model":{"description":"Configuration for which model processes the call, including its voice settings. `model` chooses the realtime model. `voiceId` must be a voice offered by that model.","oneOf":[{"type":"object","additionalProperties":false,"properties":{"effort":{"type":"string","enum":["minimal","low","medium","high","xhigh"]},"model":{"type":"string","enum":["openai:gpt-realtime-2.1"],"description":"Which realtime model processes the call."},"voiceId":{"type":"string","enum":["alloy","ash","ballad","coral","echo","sage","shimmer","verse","marin","cedar"]},"temperature":{"type":"number","description":"How varied replies are. 0 is focused, 1 is more creative. Default: 0.8."},"maxTokens":{"type":"number","description":"Maximum length of one reply, in tokens. Default: 4096."}},"required":["model"],"title":"OpenaiGptRealtime21"},{"type":"object","additionalProperties":false,"properties":{"effort":{"type":"string","enum":["minimal","low","medium","high","xhigh"]},"model":{"type":"string","enum":["openai:gpt-realtime-2.1-mini"],"description":"Which realtime model processes the call."},"voiceId":{"type":"string","enum":["alloy","ash","ballad","coral","echo","sage","shimmer","verse","marin","cedar"]},"temperature":{"type":"number","description":"How varied replies are. 0 is focused, 1 is more creative. Default: 0.8."},"maxTokens":{"type":"number","description":"Maximum length of one reply, in tokens. Default: 4096."}},"required":["model"],"title":"OpenaiGptRealtime21Mini"},{"type":"object","additionalProperties":false,"properties":{"effort":{"type":"string","enum":["none","low","medium","high","xhigh","max"]},"model":{"type":"string","enum":["openai:gpt-live-1"],"description":"Which realtime model processes the call."},"voiceId":{"type":"string","enum":["alloy","ash","ballad","coral","echo","sage","shimmer","verse","marin","cedar","quartz","ripple","vesper","willow","stone","gleam","meridian","bossa","tempo","beacon","delta","cinder"]},"temperature":{"type":"number","description":"How varied replies are. 0 is focused, 1 is more creative. Default: 0.8."},"maxTokens":{"type":"number","description":"Maximum length of one reply, in tokens. Default: 4096."}},"required":["model"],"title":"OpenaiGptLive1"},{"type":"object","additionalProperties":false,"properties":{"effort":{"type":"string","enum":["minimal","low","medium","high"]},"model":{"type":"string","enum":["google:gemini-3.1-flash-live-preview"],"description":"Which realtime model processes the call."},"voiceId":{"type":"string","enum":["Puck","Charon","Kore","Fenrir","Aoede","Leda","Orus","Zephyr"]},"temperature":{"type":"number","description":"How varied replies are. 0 is focused, 1 is more creative. Default: 0.8."},"maxTokens":{"type":"number","description":"Maximum length of one reply, in tokens. Default: 4096."}},"required":["model"],"title":"GoogleGemini31FlashLivePreview"},{"type":"object","additionalProperties":false,"properties":{"model":{"type":"string","enum":["xai:grok-voice-latest"],"description":"Which realtime model processes the call."},"voiceId":{"type":"string","enum":["eve","ara","rex","sal","leo"]},"temperature":{"type":"number","description":"How varied replies are. 0 is focused, 1 is more creative. Default: 0.8."},"maxTokens":{"type":"number","description":"Maximum length of one reply, in tokens. Default: 4096."}},"required":["model"],"title":"XaiGrokVoiceLatest"},{"type":"object","additionalProperties":false,"properties":{"language":{"type":"string","enum":["en","ar","bg","zh","hr","cs","da","nl","fil","fi","fr","de","el","he","hi","hu","id","it","ja","ko","ms","no","pl","pt","ro","ru","sk","es","sv","ta","tr","uk","vi"]},"model":{"type":"string","enum":["elevenlabs:eleven_realtime_v1_mini"],"description":"Which realtime model processes the call."},"voiceId":{"type":"string","enum":["brian","rachel","adam","antoni","elli","josh","bella","charlotte","dTmTLshIypwp08eftJH6","M8xXPW1xIZVqZLxYby5T","KbgdAMqTSb5aaLUaXEm2"]},"temperature":{"type":"number","description":"How varied replies are. 0 is focused, 1 is more creative. Default: 0.8."},"maxTokens":{"type":"number","description":"Maximum length of one reply, in tokens. Default: 4096."}},"required":["model"],"title":"ElevenlabsElevenRealtimeV1Mini"},{"type":"object","additionalProperties":false,"properties":{"language":{"type":"string","enum":["en","ar","bg","zh","hr","cs","da","nl","fil","fi","fr","de","el","he","hi","hu","id","it","ja","ko","ms","no","pl","pt","ro","ru","sk","es","sv","ta","tr","uk","vi"]},"model":{"type":"string","enum":["elevenlabs:eleven_realtime_v1_max"],"description":"Which realtime model processes the call."},"voiceId":{"type":"string","enum":["brian","rachel","adam","antoni","elli","josh","bella","charlotte","dTmTLshIypwp08eftJH6","M8xXPW1xIZVqZLxYby5T","KbgdAMqTSb5aaLUaXEm2"]},"temperature":{"type":"number","description":"How varied replies are. 0 is focused, 1 is more creative. Default: 0.8."},"maxTokens":{"type":"number","description":"Maximum length of one reply, in tokens. Default: 4096."}},"required":["model"],"title":"ElevenlabsElevenRealtimeV1Max"}]},"tools":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","enum":["transfer"],"description":"Transfer the live call to one of destinations."},"destinations":{"type":"array","items":{"type":"object","properties":{"phoneNumber":{"type":"string","description":"E.164 number to transfer the caller to."},"condition":{"type":"string","description":"When the model should choose this number. Required when more than one destination is set."},"holdSay":{"type":"string","description":"Spoken once to the caller while they wait. If holdAudio is also set, this sentence plays first and then the audio."},"holdAudio":{"type":"string","description":"`builtin:soft-piano`, `builtin:calm`, `builtin:bright`, or an HTTPS MP3 or WAV. Loops until the call connects. Omit it and the caller hears ringing."},"receiverInstruction":{"type":"string","description":"Shown to the agent with this number. Tells it whether and how to write the sentence spoken to the person who answers. Never spoken. Omit it and the agent is asked to say who is calling and why."}},"required":["phoneNumber","condition"],"additionalProperties":false},"description":"Numbers the agent can transfer to. Set a condition on each when there is more than one."}},"required":["type","destinations"],"additionalProperties":false,"description":"Transfer the caller to a phone number.","title":"Transfer"},{"type":"object","properties":{"type":{"type":"string","enum":["dtmf"],"description":"Send DTMF keypad tones during the call."}},"required":["type"],"additionalProperties":false,"description":"Let the agent send keypad tones.","title":"Dtmf"},{"type":"object","properties":{"type":{"type":"string","enum":["disconnect"],"description":"End the call after saying goodbye."}},"required":["type"],"additionalProperties":false,"description":"Let the agent hang up.","title":"Disconnect"},{"type":"object","properties":{"type":{"type":"string","enum":["weather"],"description":"Current weather for a city the caller names."}},"required":["type"],"additionalProperties":false,"description":"Look up the current weather for a city.","title":"Weather"},{"type":"object","properties":{"type":{"type":"string","enum":["custom"],"description":"Invoke an HTTPS webhook when the model calls this tool."},"name":{"type":"string","description":"Function name the model calls."},"description":{"type":"string","description":"When the model should use this tool."},"parameters":{"type":"object","additionalProperties":{},"description":"JSON Schema for the arguments the model passes."},"url":{"type":"string","description":"HTTPS webhook invoked when the model calls this tool during a call."},"beforeSpeech":{"type":"string","description":"Spoken before the webhook when this turn has not spoken yet."},"slowSpeechAfterSeconds":{"type":"number","description":"Wait this many seconds, then speak slowSpeech if the webhook is still running."},"slowSpeech":{"type":"string","description":"Spoken once when the webhook is still running after slowSpeechAfterSeconds."}},"required":["type","name","description","parameters"],"additionalProperties":false,"description":"Call an HTTPS webhook from the conversation.","title":"Custom"},{"type":"object","properties":{"type":{"type":"string","enum":["mcp"],"description":"Connect a remote MCP server and use its tools."},"url":{"type":"string","description":"MCP server URL."},"label":{"type":"string","description":"Optional name shown in the dashboard."}},"required":["type","url"],"additionalProperties":false,"description":"Load tools from a remote MCP server.","title":"Mcp"},{"type":"object","properties":{"type":{"type":"string","enum":["knowledge"],"description":"Search uploaded documents during the call."},"documents":{"type":"array","items":{"type":"object","properties":{"docId":{"type":"string","description":"Opaque identifier for an uploaded knowledge document."},"name":{"type":"string","description":"File name shown to the agent and in the dashboard."},"sizeBytes":{"type":"number","description":"File size in bytes."}},"required":["docId","name","sizeBytes"],"additionalProperties":false},"description":"Files the agent can search."}},"required":["type","documents"],"additionalProperties":false,"description":"Answer from uploaded documents.","title":"Knowledge"}]}},"variables":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"Placeholder name used inside {{name}} tags."},"description":{"type":"string","description":"What the value means. Passed to the model with the filled value."},"defaultValue":{"type":"string","description":"Used when the call does not pass this variable."}},"required":["name"],"additionalProperties":false}},"conversation":{"type":"object","properties":{"turnDetection":{"type":"string","enum":["semantic","vad"],"description":"How the agent decides the caller has finished speaking. Default: semantic."},"minEndOfTurnSilenceMs":{"type":"number","description":"Silence before the agent treats the turn as finished, in milliseconds. Default: 500."},"allowInterruptions":{"type":"boolean","description":"Whether the caller can interrupt the agent. Default: true."},"minInterruptionDurationMs":{"type":"number","description":"How long the caller must speak to count as an interruption, in milliseconds. Default: 300."},"silenceTimeoutSeconds":{"type":"number","description":"Seconds of silence before the agent hangs up. 0 never hangs up. Default: 30."},"maxCallLengthSeconds":{"type":"number","description":"Maximum call length in seconds. Default: 600."}},"additionalProperties":false,"description":"Turn-taking and call limits. Each omitted field uses its default."}},"required":["instructions","model"],"additionalProperties":false,"description":"Speech-to-speech block shared by inbound and outbound agent calls."},"stream":{"type":"object","properties":{"audio":{"type":"boolean","description":"Live call audio. Omitted means off."},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"What the call socket carries. Omitted means the socket is open and carries neither."},"privacy":{"type":"object","properties":{"record":{"type":"boolean"},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"Omitted record and transcript mean both are off."}},"required":["type","agent"],"additionalProperties":false,"title":"Agent"},{"type":"object","properties":{"type":{"type":"string","enum":["stream"]},"stream":{"type":"object","properties":{"audio":{"type":"boolean","description":"Live call audio. Omitted means off."},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"What the call socket carries. Omitted means the socket is open and carries neither."},"privacy":{"type":"object","properties":{"record":{"type":"boolean"},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"Omitted record and transcript mean both are off."}},"required":["type"],"additionalProperties":false,"description":"The customer's websocket is the application side. No script and no agent.","title":"Stream"},{"type":"object","properties":{"type":{"type":"string","enum":["elevenlabs"]},"stream":{"type":"object","properties":{"audio":{"type":"boolean","description":"Live call audio. Omitted means off."},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"What the call socket carries. Omitted means the socket is open and carries neither."},"privacy":{"type":"object","properties":{"record":{"type":"boolean"},"transcript":{"type":"string","enum":["single","multichannel"],"description":"single mixes every channel into one stream. multichannel transcribes each channel. Omitted means off."}},"additionalProperties":false,"description":"Omitted record and transcript mean both are off."}},"required":["type"],"additionalProperties":false,"description":"Dial the destination, then SIP-transfer the answered call to ElevenLabs at the from number.","title":"Elevenlabs"}]},"variables":{"type":"object","additionalProperties":{"type":"string"},"description":"Optional per-call {{variable}} overrides."}},"required":["to","config"],"additionalProperties":false},"VoiceCallResponse":{"type":"object","properties":{"trackingId":{"type":"string","description":"Stable tracking id — use with GET /voice/calls/{trackingId}."},"websocket":{"type":"string","description":"Call socket. The path id is the trackingId."},"token":{"type":"string","description":"Token required on the call socket as ?token="}},"required":["trackingId","websocket","token"],"additionalProperties":false},"WebhookEndpoint":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for this endpoint within the account."},"webhook":{"type":"string","description":"Destination URL that receives signed JSON event payloads. Credentials are not included in this URL."},"events":{"type":"array","items":{"type":"string","enum":["EMAIL_OPEN","EMAIL_CLICK","EMAIL_FAILED","EMAIL_DELIVERED","EMAIL_UNSUBSCRIBE","EMAIL_INBOUND","INAPP_WEB_FAILED","INAPP_WEB_UNSUBSCRIBE","SMS_DELIVERED","SMS_FAILED","SMS_UNSUBSCRIBE","SMS_SUBSCRIBE","SMS_INBOUND","VOICE_INBOUND","VOICE_CONNECTED","VOICE_ENDED","PUSH_FAILED","PUSH_UNSUBSCRIBE","CALL_FAILED","CALL_UNSUBSCRIBE","WEB_PUSH_FAILED","WEB_PUSH_UNSUBSCRIBE","SLACK_FAILED","SLACK_UNSUBSCRIBE","ACCOUNT_USAGE"]},"description":"Subscribed event types for this endpoint."},"secret":{"type":"string","description":"HMAC secret for verifying X-Pingram-Signature. Returned on create and list; updates keep the same secret. Format: pingram_whsecret_..."},"basicAuth":{"type":"object","properties":{"username":{"type":"string","description":"Username sent on the Authorization header."},"passwordSet":{"type":"boolean","description":"True when a password is stored. The password itself is not returned."}},"required":["username","passwordSet"],"additionalProperties":false,"description":"HTTP Basic credentials as returned by the API. The password is never included."}},"required":["id","webhook","events","secret"],"additionalProperties":false,"description":"Destination URL that receives signed event payloads for a set of subscribed events."},"WebhookEndpointsResponse":{"type":"object","properties":{"endpoints":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Unique identifier for this endpoint within the account."},"webhook":{"type":"string","description":"Destination URL that receives signed JSON event payloads. Credentials are not included in this URL."},"events":{"type":"array","items":{"type":"string","enum":["EMAIL_OPEN","EMAIL_CLICK","EMAIL_FAILED","EMAIL_DELIVERED","EMAIL_UNSUBSCRIBE","EMAIL_INBOUND","INAPP_WEB_FAILED","INAPP_WEB_UNSUBSCRIBE","SMS_DELIVERED","SMS_FAILED","SMS_UNSUBSCRIBE","SMS_SUBSCRIBE","SMS_INBOUND","VOICE_INBOUND","VOICE_CONNECTED","VOICE_ENDED","PUSH_FAILED","PUSH_UNSUBSCRIBE","CALL_FAILED","CALL_UNSUBSCRIBE","WEB_PUSH_FAILED","WEB_PUSH_UNSUBSCRIBE","SLACK_FAILED","SLACK_UNSUBSCRIBE","ACCOUNT_USAGE"]},"description":"Subscribed event types for this endpoint."},"secret":{"type":"string","description":"HMAC secret for verifying X-Pingram-Signature. Returned on create and list; updates keep the same secret. Format: pingram_whsecret_..."},"basicAuth":{"type":"object","properties":{"username":{"type":"string","description":"Username sent on the Authorization header."},"passwordSet":{"type":"boolean","description":"True when a password is stored. The password itself is not returned."}},"required":["username","passwordSet"],"additionalProperties":false,"description":"HTTP Basic credentials as returned by the API. The password is never included."}},"required":["id","webhook","events","secret"],"additionalProperties":false,"description":"Destination URL that receives signed event payloads for a set of subscribed events."},"description":"Configured webhook endpoints. Empty when none exist."}},"required":["endpoints"],"additionalProperties":false,"description":"Events webhook endpoints configured for the current account."},"WebhookEndpointUpsertRequest":{"type":"object","properties":{"webhook":{"type":"string","description":"Public HTTPS URL that accepts POST with a JSON event body. Return 2xx to acknowledge. Private, loopback, and link-local addresses are rejected. Requests include X-Pingram-Id, X-Pingram-Signature (v1 HMAC-SHA256), and X-Pingram-Timestamp. A username and password in this URL are stored separately and removed from the saved URL."},"events":{"type":"array","items":{"type":"string","enum":["EMAIL_OPEN","EMAIL_CLICK","EMAIL_FAILED","EMAIL_DELIVERED","EMAIL_UNSUBSCRIBE","EMAIL_INBOUND","INAPP_WEB_FAILED","INAPP_WEB_UNSUBSCRIBE","SMS_DELIVERED","SMS_FAILED","SMS_UNSUBSCRIBE","SMS_SUBSCRIBE","SMS_INBOUND","VOICE_INBOUND","VOICE_CONNECTED","VOICE_ENDED","PUSH_FAILED","PUSH_UNSUBSCRIBE","CALL_FAILED","CALL_UNSUBSCRIBE","WEB_PUSH_FAILED","WEB_PUSH_UNSUBSCRIBE","SLACK_FAILED","SLACK_UNSUBSCRIBE","ACCOUNT_USAGE"]},"description":"Full set of event types to deliver to this URL. Omitting an event on update unsubscribes it. Inbound SMS to the free shared number only works when that person has already received a text from this number. Inbound SMS to a dedicated number works normally."},"basicAuth":{"properties":{"username":{"type":"string","description":"Username for the Authorization header."},"password":{"type":"string","description":"Password for the Authorization header. Required when setting basic auth. Omit on update to keep the stored password."}},"required":["username"],"additionalProperties":false,"description":"HTTP Basic credentials. Omit to leave stored credentials unchanged. null removes them. Do not also put credentials in the webhook URL. The password is write-only.","type":"object","nullable":true}},"required":["webhook","events"],"additionalProperties":false,"description":"Request body for creating or updating an events webhook endpoint."},"WebhookEvent":{"type":"object","properties":{"eventType":{"type":"string","enum":["EMAIL_OPEN","EMAIL_CLICK","EMAIL_FAILED","EMAIL_DELIVERED","EMAIL_UNSUBSCRIBE","EMAIL_INBOUND","INAPP_WEB_FAILED","INAPP_WEB_UNSUBSCRIBE","SMS_DELIVERED","SMS_FAILED","SMS_UNSUBSCRIBE","SMS_SUBSCRIBE","SMS_INBOUND","VOICE_INBOUND","VOICE_CONNECTED","VOICE_ENDED","PUSH_FAILED","PUSH_UNSUBSCRIBE","CALL_FAILED","CALL_UNSUBSCRIBE","WEB_PUSH_FAILED","WEB_PUSH_UNSUBSCRIBE","SLACK_FAILED","SLACK_UNSUBSCRIBE","ACCOUNT_USAGE"]},"channel":{"$ref":"#/components/schemas/ChannelsEnum"},"userId":{"type":"string","description":"User ID the notification was sent to."},"notificationId":{"type":"string","description":"Notification type ID."},"trackingId":{"type":"string","description":"Unique tracking ID for this notification instance."},"failureCode":{"type":"string","description":"Failure code for *_FAILED events."},"clickedLink":{"type":"string","description":"Clicked URL for EMAIL_CLICK events."},"clickedLinkTags":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}},"description":"Link tags for EMAIL_CLICK events."},"accountId":{"type":"string","description":"Account id, for ACCOUNT_USAGE."},"yearMonthDay":{"type":"string","description":"Billing period start (YYYY-MM-DD), for ACCOUNT_USAGE."},"resetsOn":{"type":"string","description":"Date the monthly budget resets (YYYY-MM-DD), for ACCOUNT_USAGE."},"percent":{"type":"number","description":"Whole percent of the monthly budget used, for ACCOUNT_USAGE."},"spent":{"type":"number","description":"Amount spent against the monthly budget, for ACCOUNT_USAGE."},"costCap":{"type":"number","description":"Monthly budget the percent was measured against, for ACCOUNT_USAGE."},"autoUpgrade":{"type":"boolean","description":"Whether the account raises its budget automatically, for ACCOUNT_USAGE."},"usage":{"type":"object","additionalProperties":{"type":"object","properties":{"count":{"type":"number","description":"Message count, or number-days for NUMBER."},"cost":{"type":"number","description":"Spend for this channel in the current billing period."}},"required":["count","cost"],"additionalProperties":false,"description":"Volume and spend for one channel in the current billing period."},"description":"Per-channel volume and cost for the current period, for ACCOUNT_USAGE."}},"required":["eventType","channel","userId","notificationId","trackingId"],"additionalProperties":false,"description":"Webhook event payload sent to customer endpoints. Use this type with SDK webhook verification methods (e.g., verify from 'pingram/webhooks')."},"WebhookResponse":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"topic":{"type":"string"}},"required":["success"],"additionalProperties":{}}},"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","bearerFormat":"JWT","description":"API Key authentication using Bearer token for server-side projects"},"clientCredentials":{"type":"http","scheme":"basic","description":"Client credentials authentication using clientId:clientSecret (Basic)"},"endUser":{"type":"http","scheme":"basic","description":"End-user authentication using clientId:userId (Basic)"},"endUserHashed":{"type":"http","scheme":"basic","description":"End-user authentication using clientId:userId:hashedUserId (Basic)"}}},"tags":[{"name":"Account"},{"name":"Accounts"},{"name":"Broadcasts"},{"name":"Components"},{"name":"Domains"},{"name":"Editor"},{"name":"Email"},{"name":"Environments"},{"name":"Health"},{"name":"Insights"},{"name":"Keys"},{"name":"Library"},{"name":"Logs"},{"name":"Members"},{"name":"Numbers"},{"name":"Profile"},{"name":"Registrations"},{"name":"Sender"},{"name":"Sms"},{"name":"SubNotifications"},{"name":"Templates"},{"name":"Types"},{"name":"User"},{"name":"Users"},{"name":"Voice"},{"name":"Webhooks"}]}