Getting Started
This tutorial walks you from zero to a successful authenticated request against the sandbox.
Prerequisites
Section titled “Prerequisites”- A sandbox test user (see Test Users).
curlor any HTTP client.
1. Log in
Section titled “1. Log in”curl -X POST https://api-dev.moriafund.com/v1/auth/login \ -H 'Content-Type: application/json' \ -d '{ "email": "admin@test.com", "password": "12341234" }'Expected response:
{ "data": { "access_token": "eyJhbGciOi...", "user": { "id": "uuid", "email": "admin@test.com" } }}Copy the access_token — you’ll use it in the next step.
2. Call an authenticated endpoint
Section titled “2. Call an authenticated endpoint”curl https://api-dev.moriafund.com/v1/users/me \ -H 'Authorization: Bearer <paste-token-here>'Expected response:
{ "data": { "id": "uuid", "email": "admin@test.com", "...": "..." }}Checkpoint
Section titled “Checkpoint”If you got a 200 with your own user record, you’re set up. Pick a tutorial from the sidebar to continue.