Create a Pet
1 min
POST
https://developer.digitail.io/api/v1/pets
Form Parameters
- clinic_idintegerrequiredExampleDescription
- vet_idintegerrequiredExampleDescription
- owner_idintegerrequiredExampleDescription
- nicknamestringrequiredExampleDescription
- birthdaystringrequiredExampleDescription
- avatarstring<binary>ExampleDescriptionFormatbinary
- species_idintegerrequiredExampleDescription
- breed_idintegerrequiredExampleDescription
- crossbreedbooleanDescription
- crossbreed_detailsstringDescription
- colorstringExampleDescription
- color_maskinteger[]Description
- distinctive_marksstringExampleDescription
- genderstring<male | female | unknown>requiredDescriptionAllowedmalefemaleunknown
- observationsstringDescription
- chip_numberstringExampleDescription
- microchip_locationstringExampleDescription
- insurance_numberstringExampleDescription
- insurance_providerstringExampleDescription
- policy_idstringExampleDescription
- passportstringExampleDescription
- descriptionstringDescription
- constitutionstringDescription
- conformationstringDescription
- allergiesstringDescription
- blood_type_idintegerDescription
- hormonal_statusintegerrequiredDescriptionAllowed012
Responses
201
- object
- dataobjectDescription
- idintegerExample
- nicknamestringExample
- species_idstringExample
- breed_idstringExample
- trupanion_speciesobjectDescription
- idintegerExample
- external_idintegerExample
- namestringExample
- trupanion_breedobjectDescription
- idintegerExample
- external_idintegerExample
- namestringExample
- observationsstring
- genderstring<male | female | unknown>ExampleAllowedmalefemaleunknown
- microchipstring
- crossbreedstring<0 | 1>ExampleAllowed01
- crossbreed_details_idinteger
- crossbreed_detailsobject
- idinteger
- labelstring
- breedstring
- species_idinteger
- colorstringExample
- distinctive_marksstring
- birthdaystring<date>ExampleFormatdate
- gender_stringstring
- chip_numberstring
- microchip_locationstring
- insurance_numberstring
- passportstring
- profile_picturestringExample
- descriptionstringExample
- constitutionstring
- conformationstring
- weightstring
- weight_evolutionintegerAllowed01-1
- allergiesstring
- nr_recsinteger
- blood_typestring
- has_hormonal_change_casebooleanExampleDescription
- hormonal_statusintegerDescriptionAllowed012
- agestringExample
- age_breakdownobject
- yearsintegerExample
- monthsintegerExample
- daysintegerExample
- patientNumberstringExample
- is_verifiedstring<0 | 1>ExampleAllowed01
- breederstring
- archiveobjectDescription
- idintegerExample
- reasonstringExample
- typestring<Deceased | Moved away | Change of owner | Other>ExampleAllowedDeceasedMoved awayChange of ownerOther
- patientsobject[]
- idintegerExample
- pet_idintegerExample
- clinic_idintegerExample
- numberstringExample
- archived_atstring<date-time>ExampleFormatdate-time
- archive_type_idintegerExample
- archive_reasonstringExample
- birthday_estimatedboolean
- rabic_tag_numberstringExample
- updated_atstringExample
- insuranceobjectDescription
- idintegerExample
- pet_idintegerExample
- providerstringExample
- policy_idstringExample
- edo_statusstring<pending | active | failed | pending_reconfirmation>ExampleDescriptionAllowedpendingactivefailedpending_reconfirmation
- edo_last_sent_atstring<date-time>ExampleFormatdate-time
- edo_activated_atstring<date-time>ExampleFormatdate-time
- edo_reconfirmed_atstring<date-time>Formatdate-time
curl
curl --request POST \
--url https://developer.digitail.io/api/v1/pets \
--header 'accept: application/json' \
--header 'content-type: multipart/form-data' \
--form 'clinic_id="1"' \
--form 'vet_id="1"' \
--form 'owner_id="1"' \
--form 'nickname="Fluffy"' \
--form 'birthday="2017-11-28"' \
--form 'species_id="1"' \
--form 'breed_id="1"' \
--form 'gender="male"' \
--form 'hormonal_status="0"'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "multipart/form-data");
var formdata = new FormData();
formdata.append("clinic_id", "1");
formdata.append("vet_id", "1");
formdata.append("owner_id", "1");
formdata.append("nickname", "Fluffy");
formdata.append("birthday", "2017-11-28");
formdata.append("species_id", "1");
formdata.append("breed_id", "1");
formdata.append("gender", "male");
formdata.append("hormonal_status", "0");
var requestOptions = {
method: 'POST',
headers: myHeaders,
body: formdata,
redirect: 'follow'
};
fetch("https://developer.digitail.io/api/v1/pets", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));ruby
require "uri"
require "net/http"
url = URI("https://developer.digitail.io/api/v1/pets")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Post.new(url)
request["accept"] = "application/json"
request["content-type"] = "multipart/form-data"
form_data = [['clinic_id', File.open('undefined')],['vet_id', File.open('undefined')],['owner_id', File.open('undefined')],['nickname', File.open('undefined')],['birthday', File.open('undefined')],['species_id', File.open('undefined')],['breed_id', File.open('undefined')],['gender', File.open('undefined')],['hormonal_status', File.open('undefined')]]
request.set_form form_data, 'multipart/form-data'
response = https.request(request)
puts response.read_body
python
import requests
url = "https://developer.digitail.io/api/v1/pets"
payload = {}
files=[
]
headers = {
'accept': 'application/json',
'content-type': 'multipart/form-data'
}
response = requests.request("POST", url, headers=headers, data=payload, files=files)
print(response.text)
201
// Successful operation
{
"data": {
"id": 1,
"nickname": "Fritz",
"species_id": "1",
"breed_id": "1",
"trupanion_species": {
"id": 1,
"external_id": 1,
"name": "Dog"
},
"trupanion_breed": {
"id": 1,
"external_id": 101,
"name": "Golden Retriever"
},
"observations": "",
"gender": "male",
"microchip": "",
"crossbreed": "0",
"crossbreed_details_id": 0,
"crossbreed_details": {
"id": 0,
"label": "",
"breed": "",
"species_id": 0
},
"color": "NavajoWhite",
"distinctive_marks": "",
"birthday": "1983-03-29",
"gender_string": "",
"chip_number": "",
"microchip_location": "",
"insurance_number": "",
"passport": "",
"profile_picture": "https://dev-1-public-digitail.s3.eu-central-1.amazonaws.com/ionut/uploads/KXy8Rlv2vluiZYqwRCy2",
"description": "Lorem ipsum",
"constitution": "",
"conformation": "",
"weight": "",
"weight_evolution": 0,
"allergies": "",
"nr_recs": 0,
"blood_type": "",
"has_hormonal_change_case": true,
"hormonal_status": 0,
"age": "38 Years, 3 Months, 19 Days",
"age_breakdown": {
"years": 38,
"months": 3,
"days": 19
},
"patientNumber": "mxc-1 #jwq-1",
"is_verified": "1",
"breeder": "",
"archive": {
"id": 1,
"reason": "The patient was archived because...",
"type": "Deceased"
},
"patients": [
{
"id": 1,
"pet_id": 1,
"clinic_id": 1,
"number": "DGT-102",
"archived_at": "2020-08-16T08:56:44.000000Z",
"archive_type_id": 1,
"archive_reason": "Pet deceased"
}
],
"birthday_estimated": false,
"rabic_tag_number": "12109384",
"updated_at": "2020-06-12 15:45:43",
"insurance": {
"id": 1,
"pet_id": 100,
"provider": "trupanion",
"policy_id": "abc-123-def",
"edo_status": "active",
"edo_last_sent_at": "2026-05-05T10:00:00Z",
"edo_activated_at": "2026-05-06T09:00:00Z",
"edo_reconfirmed_at": ""
}
}
}