Quick Start
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 my-api
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.
Add a new pet to the store.
Authorizations
Body
idinteger · int64OptionalExample:
10
namestringRequiredExample:
doggie
photoUrlsstring[]Required
statusstring · enumOptionalPossible values:
pet status in the store
Responses
200
Successful operation
400
Invalid input
422
Validation exception
default
Unexpected error
post
POST /api/v3/pet HTTP/1.1
Host:
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 133
{
"id": 10,
"name": "doggie",
"category": {
"id": 1,
"name": "Dogs"
},
"photoUrls": [
"text"
],
"tags": [
{
"id": 1,
"name": "text"
}
],
"status": "available"
}
{
"id": 10,
"name": "doggie",
"category": {
"id": 1,
"name": "Dogs"
},
"photoUrls": [
"text"
],
"tags": [
{
"id": 1,
"name": "text"
}
],
"status": "available"
}
Take a look at how you might call this method using our official libraries, or via curl
:
curl https://api.myapi.com/v1/pet
-u YOUR_API_KEY:
-d name='Wilson'
-d species='dog'
-d owner_id='sha7891bikojbkreuy'
Last updated