public-api-key and private-secret-key headers. Find them in your Yuno Dashboard.
Do not share your secret API keys in public places like GitHub or Bitbucket to avoid malicious API calls.
X-Idempotency-Key may be required. This UUID must be unique for each request. See Idempotency for details.
Example request:
Idempotency
Idempotency is the ability to make multiple identical requests and always get the same response. This is useful when a request fails due to a connection issue and the outcome is unclear; you can retry using the sameX-Idempotency-Key and the API will not duplicate the operation.
Some requests include a unique identifier sent as the X-Idempotency-Key header (e.g., 7bf41af5-70ae-4e79-9b28-a8fa75c3ac53). This key also serves to identify a specific transaction.
Set the
x-idempotency-key value to {$randomUUID} to generate keys automatically.X-Idempotency-Key and the transaction status for 24 hours, regardless of the outcome (captured, authorized, or failed). Any subsequent request with the same key within that window returns the original response instead of creating a new transaction.
If two requests are sent simultaneously, the API may receive the second before responding to the first. In that case, the second request returns a 409 Conflict, indicating there is already an open call for that X-Idempotency-Key.
If two requests are sent with the same key but different body contents, the API processes only the first one.
400 error. This allows you to correct the request and resubmit it with the same key. The same applies to 500 errors.