---
updatedAt: 2025-03-19T18:48:24.000Z
agentTools:
  projectIndex: https://docs.astra.finance/llms.txt
---

# Getting Started

This guide will walk you through the steps to make your first requests to the sandbox API. Calling endpoints in production will follow a similar process but use different URLs.

## Overview

Getting started with the Astra API follows a simple, four-step process:

1. [Create your developer account and generate API keys](https://docs.astra.finance/docs/getting-started#create-your-developer-account)
2. [Create a test user profile](https://docs.astra.finance/docs/getting-started#create-a-test-user-profile)
3. [Authorize your client with the test user](https://docs.astra.finance/docs/getting-started#authorize-your-client-with-the-test-user)
4. [Make a request to the API with an](https://docs.astra.finance/docs/getting-started#make-a-request-to-the-api-with-an-access-token) `access_token`

### Optional

To view a code-based walkthrough of the user onboarding happy path see our latest recipe:

> 📘
>
> If you have a working Python3 environment, you can copy the code from this recipe and run it to quickly create a user with an `access_token`.

<TutorialTile backgroundColor="#540785" emoji="👩‍💼" id="63c7221580c2340908383516" link="https://docs.astra.finance/v1.0/recipes/onboarding-a-new-user-1" slug="onboarding-a-new-user-1" title="Onboarding a New User" />

## Create your developer account

You will need an active developer account to use Astra's sandbox API.

### Sign up and generate API keys

1. If you haven't already, browse to our <a href="https://dashboard-sandbox.astra.finance" target="_blank">Sandbox Dashboard</a>.
2. Enter your email and set a password.
3. Enter your first and last name and agree to our Developer Policy and Terms of Service.
4. When you click `Create Account` you will be taken to the <b>Dashboard</b> panel.
5. On the <b>Dashboard</b> panel fill out the two required fields to generate your application's `client_id` and `client_secret`:
   1. Name of your application
   2. Add a support email or URL
   3. Redirect URI for your application (you can change this value any time via the Dashboard)
6. Click the <b>Save Changes</b> button at the bottom of the page. The page will refresh and reveal a new <b>Keys</b> section which will contain the <b>Client ID</b> and <b>Client Secret</b> for your application.

You now have an active developer account. You can always log into this dashboard again using your email address and password.

You may always return to the dashboard to access your keys.

<Callout icon="📘" theme="info">
  Note that Redirect URIs are used to guide Users back to a specific page in your application after exiting our SDK. You may register multiple Redirect URIs through your Developer Dashboard, but it's important to note that Redirect URIs must remain consistent in OAuth URLs when an end-user is navigating through our SDK.
</Callout>

## Create a User Intent

To create the authorization required to make a request to the Astra API on behalf of an end user, you will need a test user profile. You can follow this process to create one.

### Creating a user intent

1. Create a new user intent following the steps outlined in our [guide to testing in the sandbox environment](testing-in-the-sandbox-environment).

## Authorize your client with the test user

The majority of the endpoints in the Astra API require [Authorization](https://docs.astra.finance/reference/authorization) of your client application by the end user. This process generates the Authorization Code you will exchange for an Access Token.

1. Browse to the OAuth URL [generated in the dashboard](https://dashboard-sandbox.astra.finance/sdk-generator) (select <b>Collect Authorization</b> from the <b>Action Type</b> dropdown)
2. Using your test user\_intent (from above), log in, then click Authorize
3. On success, the user will be redirected to the URI associated with your developer account
4. Capture the `authorization_code` from the URL
5. Exchange the `authorization_code` for an `access_token` via `POST /v1/oauth/token` [endpoint](https://docs.astra.finance/reference/post_v1-oauth-token)

> 📘
>
> Currently, you must use an API tool like Postman or a server to securely exchange the `authorization_code` in step 5. If your client is a Single Page Application (SPA), contact us for more information.

## Make a request to the API with an Access Token

All endpoints that interact with an end user's Accounts or Routines require an Access Token in the API request header.

1. Capture the `access_token` from the authorization step above
2. Add `Authorization: Bearer access_token` to the header of a request
3. Make a request to the API (we recommend the `GET /v1/accounts` [endpoint](https://docs.astra.finance/reference/get_v1-accounts))
4. A successful request will return the appropriate payload
5. [Contact Astra](mailto:developer@astra.finance) to fully configure your client for your desired payment solutions:
   * [Instant Funding](https://docs.astra.finance/docs/instant-funding)
6. Congratulations, you are now ready to set up automated Routines and Transfers!