Skip to main content
POST
/
v1
/
oauth2
/
authorize
/
confirm
Java (SDK)
package hello.world;

import java.lang.Exception;
import org.openapis.openapi.AriesJava;
import org.openapis.openapi.models.errors.ErrorResponse;
import org.openapis.openapi.models.operations.Oauth2AuthorizeConfirmRequest;
import org.openapis.openapi.models.operations.Oauth2AuthorizeConfirmResponse;

public class Application {

    public static void main(String[] args) throws ErrorResponse, Exception {

        AriesJava sdk = AriesJava.builder()
                .bearerAuth(System.getenv().getOrDefault("BEARER_AUTH", ""))
            .build();

        Oauth2AuthorizeConfirmRequest req = Oauth2AuthorizeConfirmRequest.builder()
                .nextStepAuthId("auth_confirm_456def")
                .build();

        Oauth2AuthorizeConfirmResponse res = sdk.oAuth2().authorizeConfirm()
                .request(req)
                .call();

        if (res.object().isPresent()) {
            // handle response
        }
    }
}
{
  "code": "auth_code_abc123xyz789def456",
  "redirect_uri": "https://yourapp.com/callback"
}

Documentation Index

Fetch the complete documentation index at: https://finance.dev/llms.txt

Use this file to discover all available pages before exploring further.

Body

application/json
next_step_auth_id
string
required

Authorization session ID from previous step (/v1/oauth2/authorize or /v1/oauth2/authorize/mfa)

Example:

"auth_confirm_456def"

Response

Authorization confirmed, code generated successfully

code
string
required

Single-use authorization code to exchange for tokens (expires in ~10 minutes)

redirect_uri
string<uri>
required

Redirect URI registered with the client