---
updatedAt: 2025-06-16T22:57:19.000Z
agentTools:
  projectIndex: https://developers.paygreen.fr/llms.txt
---

# Secret Key Authentication

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Auth API",
    "version": "1.1.3"
  },
  "servers": [
    {
      "url": "https://api.paygreen.fr",
      "description": "Production environment"
    },
    {
      "url": "https://sb-api.paygreen.fr",
      "description": "Sandbox environment"
    }
  ],
  "paths": {
    "/auth/authentication/{id}/secret-key": {
      "post": {
        "tags": [
          "Authentication"
        ],
        "summary": "Secret Key Authentication",
        "operationId": "post_secret_key_authentication",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "sh_[[:xdigit:]]{32}"
            },
            "example": "sh_9cc7d137d12f4c7b9d72ef4a279b3d2d"
          }
        ],
        "responses": {
          "200": {
            "description": "Authentication successful"
          },
          "401": {
            "description": "Invalid credentials"
          }
        },
        "security": [
          {
            "SecretKey": []
          }
        ]
      }
    }
  },
  "components": {
    "securitySchemes": {
      "Bearer": {
        "type": "http",
        "bearerFormat": "JWT",
        "scheme": "bearer"
      },
      "SecretKey": {
        "type": "apiKey",
        "name": "Authorization",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "Bearer": []
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```