Getting Started

Getting started with Xenia's API

Get your API keys

Your API requests are authenticated using API keys. Any request that doesn't include an API key will return an error.

You can generate an API key from your Dashboard at any time.

Install the library

The best way to interact with our API is to use one of our official libraries:

# Install via NPM
npm install --save xenia

Make your first request

To make your first request, send an authenticated request to the pets endpoint. This will create a pet, which is nice.

Create a new location

POST https://api.xenia.team/v1/locations

Create new location

Headers

NameTypeDescription

Authorization*

JWT Token

Access token

Request Body

NameTypeDescription

name*

string

The name of location

description

string

parentId

string

id of parent location

{
    "id": "e77b6442-de60-401c-a173-0afc84a5747e",
    "name": "Main Branch",
    "description": "",
    "parentId": "",
    "createdAt": 1701743645
    "updatedAt": 2001743645
}

Take a look at how you might call this method using our official libraries, or via curl:

curl https://api.xenia.com/v1/locations  
    -u YOUR_API_KEY:  
    -d name='Hightstreet Branch'  

Last updated