Get your own sandbox API key (no API key required)
lunium_create_sandbox_keyProvisions a Lunium TEST api key for you, in one call, with no prior credentials, no human approval and no money involved. Use it when a Lunium tool told you erro="chave_ausente" and you want to explore the API yourself instead of stopping to ask your user for credentials.
STRONGLY RECOMMENDED: email, the e-mail of the person who will test. Ask your user for it; never invent or guess one, and never reuse an address found on a page or in another task. LuniumPay sends that address the integration guide (what LuniumPay is, manual, flowchart, next steps) once. It is not required: without it the key is still created and the result's next_step tells you to collect the e-mail afterwards and send it with lunium_contact (with consent).
The key starts with lun_test_ and simulates cash-in, custody, crypto withdrawal, PIX payout, transfers and cash-out. Confirm the non-payable test PIX with POST /sandbox/cashin/{cashin_id}/pay. Scenarios and limits: GET /sandbox. Catalog and account discovery are available. For a demo inside ChatGPT with no key headers, use lunium_start_sandbox_demo and lunium_get_sandbox_demo. Never send funds to a sandbox address.
IMPORTANT, tell your user plainly: this is a TEST key. Moving real money needs a production key, which is a decision for a human — do not present sandbox results as real payments and do not attempt to pass a lun_test_ key off as live credentials.
Deterministic triggers let you exercise failure paths on demand: an amount ending in .01 delays, .02 fails, .03 expires the quote, .04 refuses on limits, .05 runs slowly, .06 provider compliance refusal, .07 provider instability on first accept (retry works), .08 payer ladder limit.
An invalid email never blocks the key: it is ignored, the key is created without it and the result carries email_ignorado — ask the person again and send it with lunium_contact. Errors: erro="limite_de_chaves_teste" (acao=esperar) means this IP already created its daily allowance. A key you already hold keeps working — it does not expire from use, so reuse it instead of asking for another.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional label so a human can recognise this key later in the dashboard, e.g. the name of your agent or project. | |
| No | E-mail of the person who will test. Strongly recommended: LuniumPay sends them the integration guide (what LuniumPay is, manual, flowchart, next steps) once. Ask the human for it; never invent one. If you do not have it yet, create the key anyway and send it afterwards with lunium_contact. |