Docs
cortecs.aiDedicated ModelsServerless ModelsLogin
  • Introduction
  • DEDICATED INFERENCE
    • Quickstart
    • Provisioning API
      • Authentication
      • User
      • Instances
      • Models
      • Hardware Types
    • Python client
      • Objects
      • Langchain integration
    • Examples
      • Batch jobs
      • Realtime streams
  • SERVERLESS INFERENCE
    • Quickstart
    • Serverless Routing
    • Playground
    • API Overview
      • Chat Completions
      • Embeddings
      • Models
  • Discord
Powered by GitBook
On this page
  1. DEDICATED INFERENCE
  2. Provisioning API

Authentication

PreviousProvisioning APINextUser

Last updated 14 days ago

Go to the Credentials section of your Profile page on cortecs.ai and create your credentials first.

📌 Remember to include the Authorization: Bearer <access_token> header when required.

Authenticate a client and retrieve an access token

post

Authenticates a client using the client credentials and returns an access token to be used for further API requests.

Body
client_idstringRequired

The client ID assigned to the client.

Example: your_client_id
client_secretstringRequired

The client secret assigned to the client.

Example: your_client_secret
grant_typestringRequired

The type of grant being used, typically "client_credentials".

Example: client_credentials
Responses
200
Successfully authenticated
application/json
400
Invalid request.
401
Unauthorized - Invalid client credentials.
500
Internal server error.
post
POST /api/v1/oauth2/token HTTP/1.1
Host: cortecs.ai
Content-Type: application/json
Accept: */*
Content-Length: 101

{
  "client_id": "your_client_id",
  "client_secret": "your_client_secret",
  "grant_type": "client_credentials"
}
{
  "access_token": "abcdef123456",
  "token_type": "Bearer",
  "expires_in": 3600
}