Skip to content

Getting Started

This tutorial walks you from zero to a successful authenticated request against the sandbox.

  • A sandbox test user (see Test Users).
  • curl or any HTTP client.
Terminal window
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.

Terminal window
curl https://api-dev.moriafund.com/v1/users/me \
-H 'Authorization: Bearer <paste-token-here>'

Expected response:

{
"data": {
"id": "uuid",
"email": "admin@test.com",
"...": "..."
}
}

If you got a 200 with your own user record, you’re set up. Pick a tutorial from the sidebar to continue.