---
title: Roster API
slug: roster-api
description: The Roster API lets brands ecommercebuild integrations that extend the platform. Access the API docs, API explorer, and OpenAPI spec.
docTags: 
createdAt: 2024-12-06T22:59:03.021Z
---

The Roster API allows brands to build integrations that extend and enhance the Roster experience. You can find the Roster API documentation [here](https://api.getroster.com/docs/v2/index.html). You can also use our [api explorer](https://api.getroster.com/swagger) in preparation for development, or download the OpenAPI specification to use in Postman or other OpenAPI-aware tools.&#x20;

:::Iframe{iframeHeight="0" code="<div class=&#x22;postman-run-button&#x22;&#xA;data-postman-action=&#x22;collection/fork&#x22;&#xA;data-postman-visibility=&#x22;public&#x22;&#xA;data-postman-var-1=&#x22;14082510-e3876126-4341-477a-b6cd-11ca2ea7f4c0&#x22;&#xA;data-postman-collection-url=&#x22;entityId=14082510-e3876126-4341-477a-b6cd-11ca2ea7f4c0&entityType=collection&workspaceId=2ba7fa0d-1078-4b7d-964b-bce09813c567&#x22;&#xA;data-postman-param=&#x22;env%5BRoster%20Environment%5D=W3sia2V5IjoicHJpdmF0ZS1hY2Nlc3MtdG9rZW4iLCJ2YWx1ZSI6IiIsImVuYWJsZWQiOnRydWUsInR5cGUiOiJzZWNyZXQiLCJzZXNzaW9uVmFsdWUiOiIiLCJjb21wbGV0ZVNlc3Npb25WYWx1ZSI6IiIsInNlc3Npb25JbmRleCI6MH0seyJrZXkiOiJwdWJsaWMtYWNjZXNzLXRva2VuIiwidmFsdWUiOiIiLCJlbmFibGVkIjp0cnVlLCJ0eXBlIjoiZGVmYXVsdCIsInNlc3Npb25WYWx1ZSI6IiIsImNvbXBsZXRlU2Vzc2lvblZhbHVlIjoiIiwic2Vzc2lvbkluZGV4IjoxfV0=&#x22;></div>&#xA;<script type=&#x22;text/javascript&#x22;>&#xA;  (function (p,o,s,t,m,a,n) {&#xA;    !p[s] && (p[s] = function () { (p[t] || (p[t] = [])).push(arguments); });&#xA;    !o.getElementById(s+t) && o.getElementsByTagName(&#x22;head&#x22;)[0].appendChild((&#xA;      (n = o.createElement(&#x22;script&#x22;)),&#xA;      (n.id = s+t), (n.async = 1), (n.src = m), n&#xA;    ));&#xA;  }(window, document, &#x22;_pm&#x22;, &#x22;PostmanRunObject&#x22;, &#x22;https://run.pstmn.io/button.js&#x22;));&#xA;</script>"}

:::

## API Access Tokens

All API endpoints require either a public or private access token. It is critical that you never share a private access token with anybody who shouldn't have read/write access to ALL of your Roster data. This includes never using a private access token in a front-end client, such as your brand's website or online store.&#x20;

### Public Access Tokens

Public access tokens are intended to be used in public, insecure environments, such as a browser. These token can only be used with two endpoints for capturing link clicks and orders. Refer to the API docs for details on these two endpoints.

### Private Access Tokens

Private access tokens provide read/write access to a significant amount of private account data. As such, private access tokens should only be used in secure, trusted environments (e.g. server-side) and should never be shared with anybody (including 3rd parties) with whom you wouldn't want to have read/write access to your Roster data.&#x20;

### Create and Manage Access Tokens

You can add, copy, and remove public and private access tokens from within your Roster account.&#x20;

:::::WorkflowBlock
:::WorkflowBlockItem
### Access the integrations section in Roster

1. Click on the `Brand Logo` located at the bottom of the window.
2. Click on `Integrations` > `API integration`&#x20;
:::

:::WorkflowBlockItem
### Create a new access token

1. Click the `New access token` button and select whether you want to create a public or a private access token.
2. Click the `Copy` icon next to the newly generated token to copy it to your clipboard.
:::

::::WorkflowBlockItem
### Expire an access token

1. Click the `...` more menu for the access token you want to expire
2. Select `Expire token` from the menu and confirm that you want to delete the token.&#x20;

:::hint{type="info"}
All Roster accounts linked to a Shopify store have a default Public Access Token which cannot be expired as this is the token that is automatically added to your store's pages to track link clicks and referred orders.&#x20;
:::
::::
:::::

***

## Need help?

If you have any questions or need assistance, please reach out to our support team at [support@getroster.com](mailto\:support@getroster.com).
