# Postman

How to set up and access Moment API using Postman

Using Postman to get data from the Moment API only requires settings on the Authorization tab.

## Authorization

For the Type select "Basic Auth"

In the field Username fill out with: apikey

In the field Password provide the API key generated for your user.

![](https://497021537-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LsGm2gYUXX6xCfrrWgU-887967055%2Fuploads%2FDh32jZyCoWF6sPiVyYOm%2FPostman%20configuration.png?alt=media\&token=27c363e5-8c77-474a-bdce-230b7b883dad)

## Endpoint/URL

To access the API you will need the company code for your company. This can be found in the URL  when logged in to Moment.

![The name found after team/ is your company code](https://497021537-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LsGm2gYUXX6xCfrrWgU-887967055%2Fuploads%2FUraanKZN4yb7IqtSyF2n%2FMomentCompanyCode.png?alt=media\&token=17a54728-2d44-462c-b53c-c671d8a1985b)

### Moment API URL

```
app.moment.team/api/1.0/companies/{COMPANYCODE}/{ENDPOINT}
```

Replace {COMPANYCODE} with your company code&#x20;

Replace {ENDPOINT} with the endpoint you want to work with.

E.g. to get a list of all customers use a GET request with the following URL:

<https://app.moment.team/api/1.0/companies/{COMPANYCODE}/customers>
