Skip to main content
Version: v1


ABS uses standard JWT tokens for authentication.

We use the HS256 encryption format and will assign a partner id to be sent as a JWT claim. Think of the way we use JWTs as modern API keys without the security exposure of basic authentication. JWTs can be created by most web development libraries and can be tested out at sites like this one:

If your systems are not equipped to handle JWT token-based authentication, please contact us to discuss simpler but less secure options.

ABS will assign each partner a client secret (a long string of random numbers) and a partner id.

Using standard web development libraries, the partner will generate a JWT token using the assigned secret with partnerid:<your partnerid> and claimdate: <current date in YYYY-MM-DD format> in the claims (a standard in JWT).

The partner will call the API with a standard HTTP POST that has the following Headers set:

header 'Authorization: Bearer <JWT Token>'
header 'Content-Type: application/json'

If anything goes wrong with the Authentication the API will return 401 (Unauthorized)

To obtain your client secret and partner ID, please reach out to us at

To authorize use one of the following examples:

Go Example

package main

import (

func main() {

url := "api_endpoint_here"
method := "GET"

client := &http.Client {
req, err := http.NewRequest(method, url, nil)

if err != nil {

req.Header.Add("Authorization", "Bearer {JWT}")

res, err := client.Do(req)
if err != nil {
defer res.Body.Close()

body, err := ioutil.ReadAll(res.Body)
if err != nil {

Shell Example

# With shell, you can just pass the correct header with each request
curl "api_endpoint_here" \
-H "Authorization: Bearer {JWT}"

Ruby Example

require "uri"
require "net/http"

url = URI("api_endpoint_here")

http =, url.port);
request =

request["Authorization"] = "Bearer {JWT}"

response = http.request(request)
puts response.read_body

Python Example

import requests

url = "api_endpoint_here"

headers = {

'Authorization': 'Bearer {JWT}'

response = requests.request("GET", url, headers=headers, data=payload)


Javascript Example

var axios = require('axios')

var config = {
method: 'get',
url: 'api_endpoint_here',
headers: {
Authorization: `Bearer {JWT}`,

.then(function (response) {
.catch(function (error) {

Make sure to replace `{JWT}` with your JWT token.