Api reference

API Playground

Quick request examples for the public API.

API Playground

Use these examples to test the public API from a local terminal or API client.

Get analytics metadata

curl https://api.faurya.com/api/v1/analytics/metadata \
	-H "Authorization: Bearer YOUR_FAURYA_API_KEY"

Create a goal

curl https://api.faurya.com/api/v1/goals \
	-X POST \
	-H "Authorization: Bearer YOUR_FAURYA_API_KEY" \
	-H "Content-Type: application/json" \
	-d '{"faurya_visitor_id":"visitor_123","name":"signup"}'

Create a payment

curl https://api.faurya.com/api/v1/payments \
	-X POST \
	-H "Authorization: Bearer YOUR_FAURYA_API_KEY" \
	-H "Content-Type: application/json" \
	-d '{"faurya_visitor_id":"visitor_123","transaction_id":"payment_456","amount":29.99}'