QUICKSTART
Your first API request
Use a delegated OAuth token or a server-side API key. Never include secrets in browser-delivered JavaScript.
1
Register your app
Create the app in Developer Console and select an environment.
2
Enable scopes
Use animals:read for reading or animals:write / reports:write for creating records.
3
Get credentials
OAuth Authorization Code + PKCE for users; server-side API keys for automated tasks.
4
Start with a read
Inspect HTTP status and JSON errors when debugging.
CURL
Fetch records
# A token/kulcs a szerveren legyen tárolva, ne a böngészőben.
export UEAD_TOKEN='YOUR_SERVER_SIDE_TOKEN'
curl -fsS \
-H "Authorization: Bearer ${UEAD_TOKEN}" \
'https://dev.uead.eu/developers/api/v1/animals?limit=10&offset=0'NODE.JS / SERVER
Server-side JavaScript
// Node.js 22+ — SERVER-SIDE only, never embed the secret in a web page.
const baseUrl = 'https://dev.uead.eu/developers/api/v1';
const token = process.env.UEAD_API_TOKEN;
if (!token) throw new Error('Missing UEAD_API_TOKEN');
const response = await fetch(`${baseUrl}/animals?limit=25&offset=0`, {
headers: { Authorization: `Bearer ${token}` }
});
const payload = await response.json();
if (!response.ok) throw new Error(payload.error || `HTTP ${response.status}`);
console.log(payload.items);SANDBOX
Create a test record
Sandbox data is isolated from production. Use it for first write requests.
# Sandbox hitelesítővel: a környezetet maga a hitelesítő határozza meg.
export UEAD_TOKEN='YOUR_SANDBOX_API_KEY'
curl -fsS -X POST \
'https://dev.uead.eu/developers/api/v1/animals' \
-H "Authorization: Bearer ${UEAD_TOKEN}" \
-H 'Content-Type: application/json' \
--data '{"data":{"name":"Teszt állat","species":"dog","sex":"female"}}'PRODUCTION SUBMISSION
Production submission example
Replace the placeholder with a real UEAD place ID and use properly scoped credentials.
# Production példa: a helyazonosító a tényleges UEAD katalógusból származzon.
export UEAD_TOKEN='YOUR_PRODUCTION_SERVER_TOKEN'
export IDEMPOTENCY_KEY='report-20261019-unique-0001'
curl -fsS -X POST \
'https://dev.uead.eu/developers/api/v1/reports' \
-H "Authorization: Bearer ${UEAD_TOKEN}" \
-H 'Content-Type: application/json' \
-H "Idempotency-Key: ${IDEMPOTENCY_KEY}" \
--data '{"locale":"hu","data":{"category":"neglect","urgency":"ongoing","eventPlaceId":"VALOS_UEAD_HELY_ID","knowledgeSource":"observed","eventDescription":"Teszt leírás","reporterMode":"identified"}}'