إنتقل إلى المحتوى الرئيسي

Postman Collection

Use our Postman collection to quickly test and explore the Najeeb Health Suite API.

Import Collection​

  1. Download the collection: Najeeb Health Suite.postman_collection.json
  2. Open Postman
  3. Click Import → Upload Files
  4. Select the downloaded collection file

Environment Setup​

Create a new environment in Postman with the following variables:

VariableInitial ValueCurrent Value
base_urlhttps://api.najeeb.com/v1https://api.najeeb.com/v1
client_idYOUR_CLIENT_IDYOUR_CLIENT_ID
client_secretYOUR_CLIENT_SECRETYOUR_CLIENT_SECRET
access_token(leave empty)(auto-populated)

Authentication​

The collection includes a pre-request script that automatically obtains and refreshes access tokens.

Manual Token Request​

If you prefer to get a token manually:

  1. Select the Authentication folder
  2. Run the Get Access Token request
  3. Copy the access_token from the response
  4. Set it in your environment variables

Collection Structure​

Authentication​

  • Get Access Token

Patients​

  • List Patients
  • Get Patient
  • Create Patient
  • Update Patient
  • Delete Patient

Claims​

  • List Claims
  • Get Claim
  • Submit Claim
  • Update Claim Status

Providers​

  • List Providers
  • Get Provider
  • Check Provider Availability

Authorizations​

  • List Authorizations
  • Get Authorization
  • Request Authorization
  • Approve Authorization
  • Reject Authorization

Using the Collection​

Example: Create a Patient​

  1. Select Patients → Create Patient
  2. The request is pre-configured with example data
  3. Modify the request body as needed
  4. Click Send

Example: Submit a Claim​

  1. First, get a patient ID and provider ID
  2. Select Claims → Submit Claim
  3. Update the request body with your patient and provider IDs
  4. Click Send

Testing Webhooks​

To test webhooks locally:

  1. Use ngrok to expose your local server:
    ngrok http 3000
  2. Use the ngrok URL in your webhook configuration
  3. Trigger events using the Postman collection
  4. Verify webhook delivery in your local server logs

Environment Variables​

The collection uses these variables:

  • {{base_url}} - API base URL
  • {{access_token}} - OAuth access token
  • {{patient_id}} - Patient ID (set after creating a patient)
  • {{claim_id}} - Claim ID (set after submitting a claim)
  • {{authorization_id}} - Authorization ID (set after requesting authorization)

Next Steps​