Skip to Content
Help centerHow do I…Test an endpoint with curl

title: “Test an endpoint with curl” description: “Call the REST API from the terminal without Postman.” audience: [“developer”] modules: [“api”] estimated_minutes: 3 last_reviewed: “2026-05-03”

Test an endpoint with curl

For: Developer
Last reviewed:

curl works on macOS, Linux and Windows 10+. Use double quotes to escape JSON on Windows.

TL;DR

curl -H "Authorization: Bearer KEY" https://api.ministrium.app/v1/members

Steps

    1. Generate an API key (see generate API key). 2. Export the key as variable: export MS_KEY=ms_xxx. 3. Test read: curl -H "Authorization: Bearer $MS_KEY" https://api.ministrium.app/v1/members?limit=1. 4. Expect 200 OK with one-member JSON. 5. Test POST: add -X POST -H "Content-Type: application/json" -d '{...}'.

Was this helpful?id: test-endpoint-curl
Report as outdated
Last updated on