Create API Token

Create API Token

Method: POST

Endpoint: https://api.autociso.io/api/v1/auth/tokens

Create an API token for server-to-server use.

Request

Code Examples

cURL

curl --globoff -X POST "https://api.autociso.io/api/v1/auth/tokens"

JavaScript

fetch('https://api.autociso.io/api/v1/auth/tokens', {
  method: 'POST'
})
  .then(response => response.json())
  .then(data => console.log(data));

Python

import requests

response = requests.post("https://api.autociso.io/api/v1/auth/tokens")
print(response.json())

Go

package main

import (
  "fmt"
  "io"
  "net/http"
)

func main() {
  req, _ := http.NewRequest("POST", "https://api.autociso.io/api/v1/auth/tokens", nil)
  res, _ := http.DefaultClient.Do(req)
  defer res.Body.Close()
  body, _ := io.ReadAll(res.Body)
  fmt.Println(string(body))
}

Java

import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

public class ApiClient {
  public static void main(String[] args) throws Exception {
    HttpResponse<String> response = Unirest.post("https://api.autociso.io/api/v1/auth/tokens")
      .asString();
    System.out.println(response.getBody());
  }
}

Last reviewed: 2026-09-09

Was this page helpful?

Esc