Petnow LogoPetnow

Server API Overview

Learn how to use the Petnow Server API and authentication methods.

Overview

Petnow Server API is a RESTful API that allows you to implement pet biometric recognition features directly from your server. We recommend calling the API from your server instead of using the mobile SDK's API Module.

Why use Server API?

  • Securely manage API Keys on your server
  • Handle requests independently of client app network issues
  • Centralize business logic and data processing on your server

Base URL

EnvironmentURL
Productionhttps://api.b2b.petnow.io
Staginghttps://api.stage-b2b.petnow.io

API Documentation (Redoc): https://api.b2b.petnow.io/redoc

Authentication

All API requests require the x-petnow-api-key header.

curl -X GET "https://api.b2b.petnow.io/v2/pets" \
  -H "x-petnow-api-key: YOUR_API_KEY" \
  -H "Content-Type: application/json"
import requests

headers = {
    "x-petnow-api-key": "YOUR_API_KEY",
    "Content-Type": "application/json"
}

response = requests.get(
    "https://api.b2b.petnow.io/v2/pets",
    headers=headers
)
const response = await fetch("https://api.b2b.petnow.io/v2/pets", {
  method: "GET",
  headers: {
    "x-petnow-api-key": "YOUR_API_KEY",
    "Content-Type": "application/json"
  }
});

API Key Issuance

Request your API Key by contacting the Petnow team via email.

Contact: support@petnow.io

Keep your API Key on the server only. Do not include it in client apps. If your API Key is exposed, contact us immediately for reissuance.

Capture Session Concept

API v2 uses the Capture Session concept. The entire process of uploading and processing biometric data is managed through sessions.

Session Lifecycle

Session States

StateDescription
STARTEDSession is active and ready to receive uploads
FINISHEDSession successfully ended with captured data
ABORTEDSession was cancelled or failed
TIMEOUTSession expired without proper closure

Session Purpose

PurposeDescriptionPet ID Required
PET_PROFILE_REGISTRATIONRegister new pet✅ Yes
PET_VERIFICATIONVerify specific pet (1:1)✅ Yes
PET_IDENTIFICATIONIdentify pet (1:N)❌ No

Complete Workflows

Pet Registration Flow

Pet Verification Flow

Pet Identification Flow

API Endpoint Summary

Capture Sessions

MethodEndpointDescription
POST/v2/capture-sessionsCreate capture session

Pet Management

MethodEndpointDescription
POST/v2/petsCreate pet
GET/v2/petsList pets
GET/v2/pets/{petId}Get pet details
PATCH/v2/pets/{petId}Update pet
DELETE/v2/pets/{petId}Delete pet

Biometric Upload

MethodEndpointDescription
POST/v2/fingerprints:upload?sessionId={sessionId}Upload fingerprint (nose) image
POST/v2/appearances:upload?sessionId={sessionId}Upload appearance image

Verification & Identification

MethodEndpointDescription
POST/v2/pets/{petId}:addFingerprintsAdd fingerprints
POST/v2/pets/{petId}:verifyVerify pet
POST/v2/pets:identifyIdentify pet

Job Status

MethodEndpointDescription
GET/v2/fingerprint-addition-jobs/{jobId}Fingerprint addition status
GET/v2/verification-jobs/{jobId}Verification status
GET/v2/identification-jobs/{jobId}Identification status

Next Steps

On this page