Skip to main content
POST
/
api
/
v1
/
tokens
Log a user in.
curl --request POST \
  --url https://{subdomain}.outseta.com/api/v1/tokens
import requests

url = "https://{subdomain}.outseta.com/api/v1/tokens"

response = requests.post(url)

print(response.text)
const options = {method: 'POST'};

fetch('https://{subdomain}.outseta.com/api/v1/tokens', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://{subdomain}.outseta.com/api/v1/tokens",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

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

func main() {

url := "https://{subdomain}.outseta.com/api/v1/tokens"

req, _ := http.NewRequest("POST", url, nil)

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.post("https://{subdomain}.outseta.com/api/v1/tokens")
.asString();
require 'uri'
require 'net/http'

url = URI("https://{subdomain}.outseta.com/api/v1/tokens")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)

response = http.request(request)
puts response.read_body
{
  "access_token": "string",
  "authentication_callback_url": "string",
  "expires_in": 0,
  "id_token": "string",
  "refresh_token": "string",
  "token_type": "string"
}
{
"two_factor_required": false,
"two_factor_enrollment_required": false,
"challenge_token": "string",
"mechanism": "string",
"masked_destination": "string",
"expires_in": 0,
"available_mechanisms": [
"string"
],
"recovery_codes_available": false
}
"string"

Query Parameters

data
unknown
required

Response

Login succeeded; the access token (JWT) is returned.

access_token
string | null
authentication_callback_url
string | null
expires_in
integer<int32>
id_token
string | null
refresh_token
string | null
token_type
string | null