Authorization

All API requests to Infraon Infinity must be authenticated to ensure secure access and data protection. We use API key-based authentication via the Authorization header.

Authentication Method

httpCopyEditType: ApiKeyAuth
Location: header
Header Name: Authorization

Example Format:

makefileCopyEditAuthorization: ApiKey YOUR_API_KEY

You must include this header in every request to access secured endpoints.


Authorizing via Swagger UI

You can easily test and authorize API requests through the Swagger UI interface.

Tip: Use the Authorize button to quickly apply your API key for all endpoints in the Swagger UI.

Steps to Authorize:

  1. Click the 🔐 Authorize button at the top-right of the Swagger page.

  2. In the dialog, you'll see:

    • Name: Authorization

    • In: header

    • Type: apiKey

  3. Paste your API key into the Value field.

  4. Click Authorize.


Authorizing Specific Endpoints

You can authorize individual endpoints for more granular control:

  1. Click the lock icon next to any endpoint in the Swagger UI.

  2. Choose ApiKeyAuth (apiKey).

  3. Click Authorize to apply authentication to that endpoint.


Once Authorized, You Can:

  • Execute secured API calls directly from Swagger

  • View detailed responses, payloads, and headers

  • Test various scenarios using your API key’s access level


Logging Out

To remove your credentials:

  • Click the Authorize button again

  • Select Logout

Last updated