LooonaDocslooona.com ↗

Self-host & build › Developers › Sandbox

Sandbox

Send a test response the way your server would, and copy the request in cURL, JavaScript or Python.

The Sandbox builds an API request for you, and sends it. Admins find it in Developers, under Sandbox.

The Sandbox with a test response on the left and the request in cURL on the right.The Sandbox with a test response on the left and the request in cURL on the right.

Build a test response

  • Send to: a destination, or Keep it in Looona.
  • Title, Who sent it and Group: the response's title and who it's from.
  • Content: the answers, as JSON. Each key shows under its name, or fills {{key}} in a layout.
  • API key: to test a real key. Without one, the test uses your session.
  • Add extra data: more data kept with the response, not shown in the message.
  • Add a layout: how the destination shows it, in Markdown or JSON.

On the right, the message the destination gets updates as you type.

Send it

Also send it to the destination is off by default: the response stays in Looona as a test. Turn it on to see it in the tool.

Click Send a test response. The server's answer shows under the request, with Open it in the Inbox. Test responses are marked as such in the Inbox.

Copy the request

Pick cURL, JavaScript or Python, then Copy. Put the key in the code adds the key you typed. The copied request marks the response as a test: remove isTest for real ones.

See Send responses with the API for every field.