Infisical is the open-source platform for securing secrets, certificates, access, and AI Agents.
TypeScript acmeagentsai-agentscertificate-managementdevsecopsenvironment-variableskubernetesopen-sourcepampkipostgresprivate-caprivileged-access-managementsecret-managementsecret-managersecretssecrets-managementsecuritysecurity-toolsvault
---
title: "Hasura Cloud connection"
sidebarTitle: "Hasura Cloud"
description: "Learn how to configure a Hasura Cloud Connection for Infisical."
---
Infisical supports connecting to Hasura Cloud using a [Personal Access Token](https://hasura.io/docs/2.0/hasura-cloud/account-settings/#access-tokens) to manage your project's environment variables.
## Create a Hasura Cloud personal access token
<Steps>
<Step title="Open your Hasura Cloud account settings">
Log in to [Hasura Cloud](https://cloud.hasura.io), then select **My Account** in the bottom-left corner of the Projects page.

</Step>
<Step title="Navigate to Access Tokens">
In Account Settings, open the **Access Tokens** tab.

</Step>
<Step title="Create a new access token">
Select **New Access Token**.

</Step>
<Step title="Generate the token">
Enter a descriptive name for the token, then select **Generate**.

</Step>
<Step title="Save the token">
Select **Copy** and store the token securely for the next steps. The token is revealed only once and can't be retrieved again.

</Step>
</Steps>
## Create a Hasura Cloud connection in Infisical
<Tabs>
<Tab title="Infisical UI">
<Steps>
<Step title="Navigate to App Connections">
In your Infisical dashboard, navigate to the **Integrations** tab in the desired project, then select **App Connections**.

</Step>
<Step title="Select Hasura Cloud Connection">
Click **+ Add Connection** and choose **Hasura Cloud Connection** from the list of integrations.

</Step>
<Step title="Fill out the Hasura Cloud Connection form">
Complete the form by providing:
- A descriptive name for the connection
- An optional description
- The **Method** (Personal Access Token)
- The Personal Access Token from the previous step
Then click **Connect to Hasura Cloud**.

</Step>
<Step title="Connection created">
After submitting the form, your **Hasura Cloud Connection** will be successfully created and ready to use with your Infisical project.

</Step>
</Steps>
</Tab>
<Tab title="API">
To create a Hasura Cloud Connection via API, send a request to the [Create Hasura Cloud Connection](/api-reference/endpoints/app-connections/hasura-cloud/create) endpoint.
### Sample request
```bash Request
curl --request POST \
--url https://app.infisical.com/api/v1/app-connections/hasura-cloud \
--header 'Content-Type: application/json' \
--data '{
"name": "my-hasura-cloud-connection",
"method": "access-token",
"projectId": "7ffbb072-2575-495a-b5b0-127f88caef78",
"credentials": {
"accessToken": "[PERSONAL ACCESS TOKEN]"
}
}'
```
### Sample response
```bash Response
{
"appConnection": {
"id": "e5d18aca-86f7-4026-a95e-efb8aeb0d8e6",
"name": "my-hasura-cloud-connection",
"projectId": "7ffbb072-2575-495a-b5b0-127f88caef78",
"description": null,
"version": 1,
"orgId": "6f03caa1-a5de-43ce-b127-95a145d3464c",
"createdAt": "2025-04-23T19:46:34.831Z",
"updatedAt": "2025-04-23T19:46:34.831Z",
"isPlatformManagedCredentials": false,
"credentialsHash": "7c2d371dec195f82a6a0d5b41c970a229cfcaf88e894a5b6395e2dbd0280661f",
"app": "hasura-cloud",
"method": "access-token",
"credentials": {}
}
}
```
</Tab>
</Tabs>