{"templateId":"openapi_docs","sharedDataIds":{"openAPIDocsStore":"oas-index.yaml","sidebar":"sidebar-sidebars.yaml"},"props":{"definitionId":"index.yaml","dynamicMarkdocComponents":[],"baseSlug":"/","seo":{"title":"Authentication","description":"**Securely authenticate API requests using Basic Auth or OAuth 2.0**\n\nThe Nexi API supports two authentication methods to ensure secure access to payment processing and management endpoints. Choose the approach that aligns with your integration needs:\n\n**Basic Authentication**\n\nUse your Merchant ID as the username and API Key as the password. Combine them in the format `MerchantID:APIKey`, encode the string using Base64, and include it in the Authorization header with the `Basic` prefix for direct access to endpoints.\n\n**OAuth 2.0**\n\nGenerate a short-lived JSON Web token (JWT) by authenticating with your API key via the `authorization/oauth/token` endpoint.","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"itemId":"authentication","disableAutoScroll":true,"metadata":{"subType":"openapi-operation"},"compilationErrors":[],"markdown":{"partials":{},"variables":{"rbac":{"teams":["anonymous"]},"user":{},"remoteAddr":{"hostname":"paygate-nexigroup.redocly.app","port":4000,"ipAddress":"216.73.216.78"},"lang":"default_locale","env":{"PUBLIC_REDOCLY_BRANCH_NAME":"main"}}},"pagePropGetterError":{"message":"","name":""}},"slug":"/authentication","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}