{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-docs/functions/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["partial"]},"type":"markdown"},"seo":{"title":"Developer Documentation","siteUrl":"https://developers.sinch.com","llmstxt":{"title":"Sinch Developer Documentation","description":"LLMs.txt containing a map of all the documentation files for Sinch.","sections":[{"title":"SMS API","description":"The SMS API allows you to send and receive SMS messages with a few easy steps. You can also send bulk SMS messages to multiple customers using the Sinch SMS service.","includeFiles":["docs/sms/**/*.md","docs/sms/**/*.yaml"],"excludeFiles":["docs/sms/index.md"]},{"title":"Numbers API","description":"The Numbers API enables you to search for, view, and activate numbers. It's considered a precursor to other APIs in the Sinch product family. The numbers API can be used in tandem with any of our APIs that perform messaging or calling.","includeFiles":["docs/numbers/**/*.md","docs/numbers/**/*.yaml"],"excludeFiles":["docs/numbers/index.md"]},{"title":"Conversation API","description":"Send and receive messages globally on many popular channels with ease and confidence when using Sinch's Conversation API. Conversation API is the preferred API for sending mobile messages on SMS and other social channels with Sinch. It is a simple API with unified error messages, consistent request payloads, and common webhook payloads that are channel-agnostic.","includeFiles":["docs/conversation/**/*.md","docs/conversation/**/*.yaml"],"excludeFiles":["docs/conversation/index.md"]},{"title":"Voice API","description":"The Voice API works as a big telephony switch. The Voice API handles incoming phone calls (also known as incoming call “legs”), sets up outgoing phone calls (or outgoing call “legs”), and bridges the two. The incoming call leg may come in over a data connection (from a smartphone or web application using the Sinch SDKs) or through a local phone number (from the PSTN network). Similarly, the outgoing call leg can be over data (to another smartphone or web application using the Sinch SDKs) or the PSTN network.","includeFiles":["docs/voice/**/*.md","docs/voice/**/*.yaml"],"excludeFiles":["docs/voice/index.md"]},{"title":"Verification API","description":"The Verification API is a platform for phone number verification. It consists of the API and different software development kits (the Sinch SDKs) that you integrate with your smartphone or web application and cloud based back-end services. Together they enable SMS, Flashcall, Phone Call and Data verification in your application.","includeFiles":["docs/verification/**/*.md","docs/verification/**/*.yaml"],"excludeFiles":["docs/verification/index.md"]},{"title":"Provisioning API","description":"Provisioning API allows you to programmatically set up your senders, accounts and templates on your favorite messaging platforms on the Conversation API. For now, you can create your first WhatsApp channel through Meta's Embedded sign up, you can configure your first SMS App and configure your webhooks. As development continues, we will be adding the most commonly used channels.","includeFiles":["docs/provisioning-api/**/*.md","docs/provisioning-api/**/*.json"],"excludeFiles":["docs/provisioning-api/index.md"]},{"title":"Elastic SIP Trunking API","description":"With Elastic SIP Trunking you can create and manage your SIP trunks and phone numbers programmatically.","includeFiles":["docs/est/**/*.md","docs/est/**/*.yaml"],"excludeFiles":["docs/est/index.md"]},{"title":"Fax API","description":"Send and receive HIPAA compliant faxes on our modern fax platform using our developer-friendly API.","includeFiles":["docs/fax/**/*.md","docs/fax/**/*.yaml"],"excludeFiles":["docs/fax/index.md"]},{"title":"In-app Voice and Video SDK","description":"The In-app Voice and Video SDK enables you to add voice and video calling capabilities directly into your mobile or web application using the Sinch SDKs.","includeFiles":["docs/in-app-calling/**/*.md"],"excludeFiles":["docs/in-app-calling/index.md"]}],"hide":false,"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"logs-and-monitoring","__idx":0},"children":["Logs and Monitoring"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The CLI provides two modes for viewing function logs: historical (fetch recent requests) and streaming (live tail). Both use an interactive terminal UI."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"viewing-recent-logs","__idx":1},"children":["Viewing Recent Logs"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"sinch functions logs [ID]\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Fetches the 50 most recent requests and displays them in an interactive table. Navigate with arrow keys. Press Enter to expand request/response details and console output."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["If you are inside the function directory (containing ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["sinch.json"]},"), you can omit the ID."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"streaming-real-time-logs","__idx":2},"children":["Streaming Real-Time Logs"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"sinch functions logs [ID] --follow\nsinch functions logs stream [ID]          # equivalent\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Opens a live streaming connection. New requests appear as they arrive. Press ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Q"]}," or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Ctrl+C"]}," to exit."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"log-viewer-controls","__idx":3},"children":["Log Viewer Controls"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Key"},"children":["Key"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Action"},"children":["Action"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Up"]}," / ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Down"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Navigate rows"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Enter"]}," or click"]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Expand request details"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Esc"]}," or ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Q"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Close detail view or quit"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["J"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Copy request as JSON to clipboard"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["C"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Copy request as cURL command to clipboard"]}]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"filtering-logs","__idx":4},"children":["Filtering Logs"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"sinch functions logs ID --level error       # errors only\nsinch functions logs ID --search \"timeout\"  # text search\nsinch functions logs ID --since 1h          # last hour\nsinch functions logs ID --lines 200         # more entries\nsinch functions logs ID --since 30m --level error  # combine\n","lang":"bash"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["--since"]}," accepts ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["s"]}," (seconds), ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["m"]}," (minutes), ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["h"]}," (hours), ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["d"]}," (days)."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"log-entry-details","__idx":5},"children":["Log Entry Details"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Each expanded entry shows:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Request"]}," — HTTP method, URL, headers, and body sent to your function"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Response"]}," — Status code, headers, and body your function returned"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Console logs"]}," — ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["console.log"]},"/",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["console.error"]}," output with timestamps"]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"function-status","__idx":6},"children":["Function Status"]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"data-language":"bash","header":{"controls":{"copy":{}}},"source":"sinch functions status [ID]               # current status\nsinch functions status [ID] --follow      # poll every 3s for changes\nsinch functions list                      # all functions in project\nsinch functions list -i                   # interactive: select and take action\nsinch functions status ID --json          # JSON output for scripting\n","lang":"bash"},"children":[]}]},"headings":[{"value":"Logs and Monitoring","id":"logs-and-monitoring","depth":1},{"value":"Viewing Recent Logs","id":"viewing-recent-logs","depth":2},{"value":"Streaming Real-Time Logs","id":"streaming-real-time-logs","depth":2},{"value":"Log Viewer Controls","id":"log-viewer-controls","depth":2},{"value":"Filtering Logs","id":"filtering-logs","depth":2},{"value":"Log Entry Details","id":"log-entry-details","depth":2},{"value":"Function Status","id":"function-status","depth":2}],"frontmatter":{"seo":{"title":""}},"lastModified":"2026-04-15T14:23:23.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/docs/functions/monitoring","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}