Skip to main content

API Key Authentication

All Open API requests require an API key in the Bearer token format.
Authorization: Bearer osk_megamart_a1b2c3d4e5f6g7h8...

Issuing an API Key

Prerequisites

  • Tenant administrator (admin) privileges required
  • Open API must be enabled for the tenant in the admin panel

Issuance Steps

  1. Log in to the tenant page as an administrator
  2. Click Open API from the profile menu
  3. Click the Issue New API Key button
  4. Choose a key name and expiration period
  5. Copy the issued key and store it in a safe place
The API key is shown only once at the time of issuance. You cannot view it again later, so make sure to store it securely.

Expiration Options

7 days, 14 days, 30 days, 60 days, 90 days, 180 days, 365 days, or permanent

Revoking a Key

Revoke any key that is no longer in use immediately:
  1. Check the key list on the Open API page
  2. Click the Revoke button for the target key
  3. Select Revoke in the confirmation modal
All use is halted immediately after revocation, so before revoking make sure to check for any applications connected to the key and issue a new key in advance.

Key Types

TypePrefixPurposeAccessible
Client SDKosk_iOS/Android, web and other clientsprofile, chat/

Scopes

Client SDK (osk_)

ScopeAccessible Endpoints
profile/v1/profile/**
chat/v1/chat/{profile_id}/**

Error Responses

HTTP CodeCause
401Missing API key, invalid key, or expired key
403Tenant has Open API disabled, or insufficient scope
{
  "success": false,
  "message": "Invalid or expired API key"
}

Security Recommendations

  • Do not include API keys directly in source code
  • Use environment variables or a secret manager
  • For iOS apps, store keys in the Keychain
  • On the server side, manage keys via environment variables
  • Revoke any unneeded key immediately