Quickstart
Sign in to the MedicalTrace API and read the current user.
The API base URL is https://api.medicaltrace.net/v1.
Local demo account
Email [email protected] and password password123 exist only in the local seed. They are not a production credential.
1. Sign in
curl -s https://api.medicaltrace.net/v1/auth/login \
-H 'content-type: application/json' \
-d '{"email":"[email protected]","password":"password123"}'The response carries a bearer token and the demo memberships for that user. Send the token on later calls:
Authorization: Bearer <accessToken>
X-Organization-Id: 11111111-1111-4111-8111-111111111111X-Organization-Id selects Demo Manufacturer. The API still checks that the token’s user is a member. Sending another organization’s id does not grant access.
2. Read the current user
curl -s https://api.medicaltrace.net/v1/me \
-H "authorization: Bearer $TOKEN"A successful body includes the demo user and active memberships. It does not include other tenants’ equipment.
Continue with the demo samples for register, upload, sign, service, and custody.