Api key Cliente

Crear API Keys

POST /v1/api-keys

Este endpoint permite crear una api key para un cliente determinado.

ParámetrosDescripción
user
  • string
  • Email del cliente
user_type
  • string
  • Tipo de usuario
  • [CUSTOMER]
customer_id
  • string
  • Identificador del cliente
merchant_id
  • string
  • Identificador del comercio
curl --request POST \
  --url https://api.menta.global/api/v1/api-keys \
  --header 'X-Api-Key: api_key_cliente' \
  --data '{
    "user": "email_comercio",
    "user_type": "MERCHANT",
    "customer_id": "{id_cliente}"
    "merchant_id": "{id_comercio}"
  }'
  {
      "id": "string",
      "api_key": "string",
      "user": "string",
      "user_type": "MERCHANT",
      "customer_id": "string",
      "merchant_id": "string",
      "status": "ENABLED",
      "create_date": "2025-05-27T15:18:14.198056093Z",
      "update_date": "2025-05-27T15:18:14.205319483Z"
  }