> ## Documentation Index
> Fetch the complete documentation index at: https://docs.trybeans.com/llms.txt
> Use this file to discover all available pages before exploring further.

# API Tokens

> Generate and manage API authentication credentials.

<Frame caption="Beans API Tokens">
  <img src="https://mintcdn.com/beans/J6xHJ5GscqG49ltu/assets/images/integrations/tokenify/hero.webp?fit=max&auto=format&n=J6xHJ5GscqG49ltu&q=85&s=76a120644ad69532a8f234fc184d7b1b" style={{ borderRadius: '0.5rem' }} title="tokenify" alt="tokenify" width="828" height="437" data-path="assets/images/integrations/tokenify/hero.webp" />
</Frame>

Beans API Tokens is a utility that lets merchants generate and manage API authentication credentials.
It's designed to help merchants:

* Integrate Beans with their existing tech stack
* Create custom business logic with Beans data
* Access Beans data through the Beans API for analytics and automation

<Warning>
  The API tokens provided by this integration are designed for individual merchants use, enabling them to access their
  data. They are not intended for partners developing integrations for multiple merchants.
</Warning>

## How it works

Once activated Merchants receive a unique set of API tokens, comprising a public identifier and a secret token.
Public identifier can be used to access non-sensitive data from the storefront
or any other place where security is not a concern. Secret token should be used server-side for accessing Beans API
endpoints that require authentication. To learn more about how to use the API, please refer to the
[API documentation](https://api.trybeans.com/v3/doc).

<Frame caption="credentials">
  <img src="https://mintcdn.com/beans/J6xHJ5GscqG49ltu/assets/images/integrations/tokenify/credentials.webp?fit=max&auto=format&n=J6xHJ5GscqG49ltu&q=85&s=16b4e6f28d26bc13987dc9b1416bb429" title="credentials" alt="credentials" style={{ borderRadius: '0.5rem' }} width="1296" height="654" data-path="assets/images/integrations/tokenify/credentials.webp" />
</Frame>

## Example

Here is an example of how to use the API to access Beans data.

```bash theme={null}
curl -u "<public-identifier>:" -X GET "https://api.trybeans.com/v3/ultimate/card/current/"
```
