Test on our Demo Site

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

<div class="senja-embed" data-id="2e27d50a-2db1-4f83-90ec-eec3edbd95f8" data-lazyload="false"></div>
<script async type="text/javascript" src="https://static.senja.io/dist/platform.js"></script>

Create pet.

POST https://api.myapi.com/v1/pet

Creates a new pet.

Request Body

NameTypeDescription

name*

string

The name of the pet

owner_id

string

The id of the user who owns the pet

species

string

The species of the pet

breed

string

The breed of the pet

{
    "name"="Wilson",
    "owner": {
        "id": "sha7891bikojbkreuy",
        "name": "Samuel Passet",
    "species": "Dog",}
    "breed": "Golden Retriever",
}

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.

Last updated