AvaCloud API
AvaCloud App
AvaCloud API
AvaCloud API
  • 👋Welcome
  • 🚀Getting Started
    • First steps
  • ⚙️API Reference
    • Key Concepts
    • Authentication
      • Create Token
    • L1
      • Get L1s
      • Create L1
      • Get L1
      • Health Check
      • Teardown
    • Plans
      • Get Infra Plans
  • Specification
Powered by GitBook

© 2025 Ava Labs, Inc.

On this page

Was this helpful?

  1. API Reference
  2. Authentication

Create Token

This is used to authenticate further calls to the API.

PreviousAuthenticationNextL1

Last updated 3 months ago

Was this helpful?

The AvaCloud API uses a client_id and client_secret to authenticate requests. Users will be issued these upon successful enrollment with AvaCloud.

Tokens are valid for 24 hours, with caching enabled to improve efficiency. If a cached token is close to expiring (within 10 minutes), a new token will be generated.

API keys must be kept secret. They should not be in your client-side code or checked into your application's code.

Request Overview

Parameter
Example Value

client_id*

"myClientId"

client_secret*

*****

*required field


⚙️
  • Request Overview
  • POSTCreate Token to call AvaCloud API

Create Token to call AvaCloud API

post

Create Token to call AvaCloud API

Body
client_idstringRequired
client_secretstringRequired
Responses
201
Created
text/plain
400
Bad Request
401
Unauthorized
429
Too Many Requests
500
Internal Server Error
post
POST /v1/token/ HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 43

{
  "client_id": "text",
  "client_secret": "text"
}
{
  "access_token": "text",
  "expires_in": 1,
  "scope": "text",
  "token_type": "text"
}