IFrame Auth API

Secure iframe embedding with JWT authentication

Documentation

Overview

This API allows secure embedding of external content through iframes with JWT authentication. All requests must be authenticated with a valid API key.

Authentication

To access protected endpoints, include your API key in the Authorization header:

Authorization: Bearer YOUR_API_KEY_HERE

Endpoints

GET /api/iframe

Embeds an iframe with the specified URL after authentication.

Query parameters:

  • url - The URL to embed in the iframe (required)

Example Request

curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://cs-chox.dhruvs.host/api/iframe?url=https://example.com"

Security

All API keys are stored securely and should be treated as sensitive information. Regenerate your API key regularly for security best practices.

Get Your API Key

Visit the Developer Portal to generate your API key.