The Moving Portal API documentationThe Moving Portal API documentation
Key concepts
API concepts
Services
Key concepts
API concepts
Services
  • Key concepts
  • API concepts
  • GDPR
  • Development
  • Releases
  • Services
  • Authentication
  • Instruction
  • Instruction search
  • Notes
  • Data
  • Referral
  • Quote
  • Quotes search
  • Supplier operations
  • Notifications
  • Testing
  • Email integration
  • Objects
  • Examples
    • Introducer
      • Authentication
      • Data
      • Quote
      • Quotes search
      • Referral
      • Instruction
      • Instructions search
      • Instruction notification
      • Notes
    • Supplier
      • Authentication
      • Data
      • Instruction
      • Instructions search
      • Instruction notification
      • Notes
      • Supplier operations
  • OTHER

Examples - Authentication service Introducer Supplier

This example uses variables from one response (for logon) to then use for the call to whoami and then to refresh.

Authentication service
@host=https://api.themovingportal.dev

### Check authentication - no header
GET {{host}}/auth/WhoAmI

### Login
# @name login
POST {{host}}/auth/login
Content-Type: application/json

{
  "username": "USERNAME",
  "password": "PASSWORD",
  "email": ""
}

### Using Bearer authentication header
GET {{host}}/auth/WhoAmI
Authorization: Bearer {{login.response.body.$.accessToken}}

### Refresh
# @name refresh
POST {{host}}/auth/refresh
Content-Type: application/json

{
  "refreshToken": "{{login.response.body.$.refreshToken}}"
}

### Using Bearer authentication header
GET {{host}}/auth/WhoAmI
Authorization: Bearer {{refresh.response.body.$.accessToken}}
Last Updated: 11/4/25, 10:52 AM
Next
Data