Loading...

CDN.com.tr Help

Authenticate with public API

Use public customer API authentication without exposing IDs or internal credentials.

Authenticate with public API

Use public customer API authentication without exposing IDs or internal credentials.

Panel path

  1. Management Panel
  2. Developers
  3. General API
  4. Token / login contract

Prerequisites

  • API credential is generated by the user and stored like a secret.
  • Login/API output does not unnecessarily print user id, account id, or token.
  • Examples and screenshots do not use real email/token values.

Step-by-step guide

1

Open API auth documentation

General API explains the login and token usage contract.

  • Open General API from Developers.
  • Read auth header and endpoint details.

Expected result: The user understands the public API entry point and safe token use.

cdnctl equivalent
cdnctl login --email "<email>" --password "<password>"
2

Run scoped API call

Account APIs must be limited to selected/owned account UUIDs.

  • Pass token as an environment variable.
  • Fetch owned account list.
  • Access with another account UUID should return 403/404.

Expected result: API returns only assets the user is authorized to see.

cdnctl equivalent
export CDN_ACCESS_TOKEN=<token>
cdnctl accounts list

Verification

  • Token and user ids are not visible in help.
  • Public API ownership boundary is preserved.
  • AI agents receive only required token/account data.

Use cases

A developer wants to call account-scoped endpoints from a script.

Quick workflow

  1. Get token through approved public login.
  2. Store token securely.
  3. Call scoped endpoint with account UUID.
  4. Handle JSON errors.

Checks

  • No user ID or account ID is returned in login examples.
  • HTTP status and message are preserved.
  • Token is not printed in help examples.

Related pages

Use cdnctl

Operate accounts, container apps, imports, logs, jobs, and object storage from terminal or AI agents.

Use Push CDN and AI API pages

Find static asset API and AI API references from the developer help structure instead of leaving them as isolated pages.