API Documentation - Version 1.0

Getting started

Introduction

The Addrow API (beta) allows you to manage invoices and customers through a simple REST API.

Obtaining an API Key

You can find your API Key on your account settings page on the "API"-tab.

Authentication

To authenticate, you must set the Authorization header and fill in the API key as the bearer token. Below you'll see an CURL example.

curl -X GET -G "https://addrow.io/api/1.0/customers" \
    -H "Authorization: Bearer {token}"

Supported Programming Languages

You can use any programming language as long as you are able to make requests to external endpoints. At the moment, there are no official (SDK) clients available. You will find CURL-code snippets throughout the documentation.

PHP

If like to use PHP, you could use the Guzzle Client to interact with the API. The below example shows you how you can retrieve your customers with PHP.

$client = new \GuzzleHttp\Client();
$response = $client->get("https://addrow.io/api/1.0/customers", [
    'headers' => [
        "Authorization" => "Bearer {token}",
    ],
]);
$body = $response->getBody();
print_r(json_decode((string) $body));

Javascript

The below example shows you how you can retrieve your customers with Javascript.

const url = new URL("https://addrow.io/api/1.0/customers");

let headers = {
    "Authorization": "Bearer {token}",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "GET",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));