
- ASTRA LANGUAGE SWITCHER VERIFICATION
- ASTRA LANGUAGE SWITCHER CODE
ASTRA LANGUAGE SWITCHER VERIFICATION
In addition to gathering an auth_code, the OAuth module can guide the User through additional verification steps or help the User connect or reconnect a bank account.
You should obtain a new refresh_token with a regular Task or cron job within the ten day expiration limit to avoid the end user having to re-authorize Astra.Īstra's OAuth module handles a variety of authorization flows. You will be provided with a new refresh_token each time you call the endpoint to refresh an access token. A refresh_token can be re-used until it expires and multiple refresh_tokens can be valid at one time. Only one access token is valid at a time. By default, the lifespan of an access_token is two hours and the lifespan of a refresh_token is ten days. Important details on access_tokens and refresh_tokens: The redirect URI for your Client (this must match your Developer Account settings) The refresh_token granted with the associated access_token POST /v1/oauth/token Parameters Parameter In the Sandbox Environment, you can copy the authorization_code from the module web page directly to use with API requests. If you are using Astra's OAuth module, the redirect URL will include the authorization_code. Use the access_token in your Authorization Header for API requests for that User. Exchange the authorization_code for an access_token using the token endpoint. Present the User with Astra's OAuth module, which returns an authorization_code. Create a User (if the User doesn't already exist). The basic sequence for generating an access_token: API requests without authorization will also fail. It should then be included in the Authorization Header ( Type: Bearer Token) for requests to the API.Īll API requests must be made over HTTPS. The access_token is returned to your Client when you submit a temporary authorization_code to our OAuth server. This section outlines the endpoints and authorization process for a User and your Client application.
To send any API request on behalf of an existing User successfully, the header must include an access_token. This documentation shows calls to the Astra production API.
ASTRA LANGUAGE SWITCHER CODE
You can view code examples in the dark area to the right, and you can switch the programming language of the examples with the tabs in the top right.įeel free to submit any questions about Astra's developer program to Please include Request-Ids in all Sandbox integration related questions, as this will enable us to quickly investigate and provide you with answers. We strongly recommend logging and/or storing all Request-Ids as they can be used to query the details of specific API calls. It accepts and returns JSON-encoded messages and uses standard HTTP response codes.Īll API requests include a request-id in the header of the response. Our API is organized around the REST framework. Welcome to the Astra API! You can use our platform to process interbank transfers, create automated routines, or manage virtual bank accounts for your users.