Onidel Cloud
  • Onidel Home Page
  • Onidel Cloud Panel
  • Cloud Status
  • Introduction
  • Information
    • Networking
    • Hardware Specifications
    • Datacenters
  • API Reference
    • Changelog
    • Authentication
    • OS Template
    • Instance Type
    • Instance Price
    • Team
      • Get Teams
    • Virtual Machine
      • List Instances
      • Get Instance Backups
      • Create Instance
      • Get Instance
      • Update Instance
      • Stop Instance
      • Reboot Instance
      • Snapshot Instance
      • Delete Instance
    • Backups
      • List Backups
      • Generate Download URL
    • Snapshots
      • List Snapshots
      • Delete Snapshot
      • Generate Download URL
  • Features
    • Data Transfer (Bandwidth) Pooling
    • Hourly Billing
    • VM Scaling
    • BYOIP & BGP
    • Attach a Snapshot/Backup to your Server
    • Peer Server
  • Automatic Backup
  • Cloud Server
    • IPv4 Configuration
    • IPv6 Configuration
    • Using Custom ISO
    • Reverse DNS
    • Disable Secure Boot
    • Backup and Snapshot Download
  • ACCOUNT
    • Supported Currencies
    • Changing Currency
    • Chargebacks & Disputes
    • Enable 2-FA
    • Affiliate Program
  • Policies
    • Service Level Agreement
    • Terms of Service
    • Acceptable Usage Policy
    • Privacy Policy
Powered by GitBook
On this page
  • Overview
  • Authentication Format
  • Example
  • How to Obtain an API Token
  • Security Best Practices
  • Keep Your Token Secure
  • Whitelist Trusted IPs Only
  • Rotate Your API Token Regularly
  • Use Environment Variables
  1. API Reference

Authentication

PreviousChangelogNextOS Template

Last updated 5 months ago

Overview

This page describes how to authenticate with the REST API using the Authorization header. The API uses token-based authentication to ensure secure access to resources. Each request to a protected endpoint must include a valid API token in the Authorization header.

Authentication Format

The API requires the Authorization header to be set in the following format:

Authorization: Token <api_token>

Example

If your API token is abcd1234xyz, include the following header in your request:

Authorization: Token abcd1234xyz

How to Obtain an API Token

  1. Login to your Onidel Cloud account.

  2. Navigate to API Key section in the .

  3. Generate a new API token if you don't already have one.

  4. Store the token securely, as it is used to authenticate all API requests.

Security Best Practices

Keep Your Token Secure

Never share your API token publicly or include it in client-side code that can be accessed by users.

Whitelist Trusted IPs Only

Configure IP whitelisting to restrict access to known and trusted IP addresses. This adds an additional layer of security, ensuring that only trusted sources can access the API.

Rotate Your API Token Regularly

Periodically regenerate your API token to minimise the impact of potential exposure.

Use Environment Variables

Store your API token in environment variables or a secure secret manager to keep it out of your codebase.

Account Settings