📕
[ARCHIVED] Cape Agulhas App
  • Home
  • User guide
    • Installation
    • User accounts and service requests
    • Supported devices
    • Troubleshooting
    • How do I reset notification preferences?
    • Enable Notifications from Settings Page
  • Administrator guide
    • Managing content
    • Pages
      • Councillors
      • Services
    • Snippets
    • Notices and Notifications
    • Important Contacts
    • Icons
    • App Environments
    • Administrator accounts
  • API
    • Overview
    • Web hooks
    • Web push
    • Accounts
    • User authentication (JWT Token)
    • Service Requests
  • Development
  • Software Development
  • Architectural Decision Records
    • ADR01: Single page app vs server-side templating
    • ADR02: custom web push backend or which service
  • Collaborator Service Requests Integration
  • Deployment
  • Design System and Component Library
    • Webflow exports & changelog
    • Component library
    • Link Blocks
    • Form Elements
    • Grids
Powered by GitBook
On this page
  • Get token
  • Refresh access token

Was this helpful?

  1. API

User authentication (JWT Token)

Get token

POST https://muni-portal-backend.openup.org.za/api/token/

Get access and refresh token for the user

Request Body

Name
Type
Description

password

string

User password

username

string

User name

{
    "access": "JWT.ACCESS.TOKEN",
    "refresh": "JWT.REFRESH.TOKEN"
}

Refresh access token

POST https://muni-portal-backend.openup.org.za/api/token/refresh/

Get new access token by refresh token

Path Parameters

Name
Type
Description

refresh

string

JWT refresh token

{
    "access": "JWT.ACCESS.TOKEN",
    "refresh": "JWT.REFRESH.TOKEN"
}
PreviousAccountsNextService Requests

Last updated 4 years ago

Was this helpful?