Skip to main content
POST
/
v1
/
login
curl
curl -X POST https://my_sql_node.com/v1/login \
    -H "Content-Type: application/json" \
    -d '{
        "username": "admin",
        "password": "admin",
        "database": "system"
    }'
{
  "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...",
  "username": "jdoe",
  "database": "retail_analytics",
  "expires_in": 3600,
  "status": {
    "reason": "Authentication successful",
    "sql_state": "00000",
    "vendor_code": 0
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.ocient.com/llms.txt

Use this file to discover all available pages before exploring further.

Body

application/json
username
string
required

Username.

password
string
required

The password for the username.

database
string

Target database name. If you do not specify this parameter, the request defaults this value to system.

Response

200 - application/json

Response

access_token
string
username
string
database
string
expires_in
integer
status
object
Last modified on May 20, 2026