How to ping the REST API

Using Postman

You will be using Postman to make these calls, all you need is your token. The API documentation can be found in this page, but in short, you will need to use your endpoint (local, staging or production), for example staging looks like this `https://moped-api-staging.austinmobility.io/users`

Secondly, you will need to select the HTTP verb (GET, POST, PUT, etc). In this example, we use GET to retrieve a list of users.

Third, go to Authorization, for type select Bearer Token, and copy-paste your token. Then click SEND.

At the moment, only admins can list/update users.

Using cURL

It is possible to use cURL as well, it is just a bit more verbose:

curl --location --request GET 'https://moped-api-staging.austinmobility.io/users' \
--header 'Authorization: Bearer <YOUR TOKEN HERE>'

Last updated

Was this helpful?