Skip to main content
POST
/
test
/
generate-token
Criar Token
curl --request POST \
  --url https://production.api.noodle.cx/external/test/generate-token \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <x-api-key>' \
  --header 'x-private-key: <x-private-key>' \
  --header 'x-user-id: <x-user-id>' \
  --data '
{
  "method": "<string>",
  "path": "<string>",
  "body": {
    "key": "value"
  }
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Headers

x-user-id
string
required

Seu User ID

x-api-key
string
required

Sua API Key

x-private-key
string
required

Sua chave privada (PEM) para assinatura da requisição em base64

Body

application/json
method
string
required

O método HTTP da requisição final (ex: 'GET', 'POST').

path
string
required

O caminho do endpoint final (ex: '/external/receipts/some-id').

body
Body · object

O corpo JSON da requisição final, se houver.

Example:
{ "key": "value" }

Response

Successful Response