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

# First API credential

> Create a Client ID and Secret Key in the Trio App to authenticate your API requests.

Every V2 request authenticates with a Client ID and a Secret Key. This page walks you through creating that pair in the sandbox [Trio App](https://app.sandbox.trio.com.br).

**1. Open Settings**

In the lower-left menu, click the **Settings** icon.

![Settings icon in the lower-left menu](https://mintcdn.com/trio-372e8dab/tFRwxIsAtoxrbPUe/images/image-\(21\).png?fit=max\&auto=format\&n=tFRwxIsAtoxrbPUe\&q=85\&s=8110ef39882a7ee3b17b8ce232e9cf36)

**2. Go to API Keys**

In the dropdown menu, select **API Keys**.

![API Keys option in the Settings menu](https://mintcdn.com/trio-372e8dab/tFRwxIsAtoxrbPUe/images/image-\(22\).png?fit=max\&auto=format\&n=tFRwxIsAtoxrbPUe\&q=85\&s=8aa45a8883c5e867e510b6696495af5e)

**3. Create a key**

Click **Create Key**.

![Create Key button](https://mintcdn.com/trio-372e8dab/tFRwxIsAtoxrbPUe/images/image-\(23\).png?fit=max\&auto=format\&n=tFRwxIsAtoxrbPUe\&q=85\&s=bd6f62dfeba0c888ad10008716637143)

**4. Name the credential**

Enter a name or identifier for the credential.

![Credential name field](https://mintcdn.com/trio-372e8dab/tFRwxIsAtoxrbPUe/images/image-\(24\).png?fit=max\&auto=format\&n=tFRwxIsAtoxrbPUe\&q=85\&s=9dc60729d831483ca38845142cedc46a)

**5. Choose the permissions**

Define whether the credential has **Read and Write** or **Read-Only** permissions.

**6. Configure the allowed IP addresses**

Register the IP address of the server that makes API requests and processes transactions. If you have questions about this configuration, contact [Trio Support](https://docs.trio.com.br/v2/getting_started/support.md).

![Example of an allowed IP addresses configuration](https://mintcdn.com/trio-372e8dab/tFRwxIsAtoxrbPUe/images/image-\(25\).png?fit=max\&auto=format\&n=tFRwxIsAtoxrbPUe\&q=85\&s=bbb79a5a108c58a677a2fcd65946ef11)

**7. Save the key**

Click **Save Key**, then enter your password and OTP code.

![Password and OTP confirmation](https://mintcdn.com/trio-372e8dab/tFRwxIsAtoxrbPUe/images/image-\(26\).png?fit=max\&auto=format\&n=tFRwxIsAtoxrbPUe\&q=85\&s=a28e73f8d760d3b4eff2f3e76d01daa0)

**8. Store the Secret Key**

Store the Secret Key in a secure location, then click **Confirm** and **Go to Key Details**.

![Secret Key shown after the key is created](https://mintcdn.com/trio-372e8dab/tFRwxIsAtoxrbPUe/images/image-\(27\).png?fit=max\&auto=format\&n=tFRwxIsAtoxrbPUe\&q=85\&s=abff336e851157a9dd239e0bca37e88c)

**9. Save the Client ID**

Save the Client ID displayed on the key details screen.

![Client ID on the key details screen](https://mintcdn.com/trio-372e8dab/tFRwxIsAtoxrbPUe/images/image-\(28\).png?fit=max\&auto=format\&n=tFRwxIsAtoxrbPUe\&q=85\&s=512c787b169e25368b84a3554fd231bb)

Your API credential is ready. Use the Client ID as the username and the Secret Key as the password, as described in [Authentication](https://docs.trio.com.br/v2/developers/authentication.md).

## Next steps

* [Authentication](https://docs.trio.com.br/v2/developers/authentication.md): how to send the credential and which headers every request carries.
* [Register your first webhook](https://docs.trio.com.br/v2/guides/creating-your-first-webhook.md) to receive events without polling.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.