Quick Start
Good to know: A quick start guide can be good to help folks get up and running with your API in a few steps. Some people prefer diving in with the basics rather than meticulously reading every page of documentation!

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:
Node
Python
1
# Install via NPM
2
npm install --save my-api
Copied!
1
# Install via pip
2
pip install --upgrade myapi
Copied!
Good to know: Using tabs to separate out different languages is a great way to present technical examples or code documentation without cramming your docs with extra sections or pages per language.

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.
post
https://api.myapi.com/v1
/pet
Create pet.
Good to know: You can use the API Method block to fully document an API method. You can also sync your API blocks with an OpenAPI file or URL to auto-populate them.
Take a look at how you might call this method using our official libraries, or via curl:
curl
Node
Python
1
curl https://api.myapi.com/v1/pet
2
-u YOUR_API_KEY:
3
-d name='Wilson'
4
-d species='dog'
5
-d owner_id='sha7891bikojbkreuy'
Copied!
1
// require the myapi module and set it up with your API key
2
const myapi = require('myapi')(YOUR_API_KEY);
3
4
const newPet = away myapi.pet.create({
5
name: 'Wilson',
6
owner_id: 'sha7891bikojbkreuy',
7
species: 'Dog',
8
breed: 'Golden Retriever',
9
})
Copied!
1
// Set your API key before making the request
2
myapi.api_key = YOUR_API_KEY
3
4
myapi.Pet.create(
5
name='Wilson',
6
owner_id='sha7891bikojbkreuy',
7
species='Dog',
8
breed='Golden Retriever',
9
)
Copied!