Skip to content

POST   /applications/{applicationId}/ai-analysis

Generate AI analysis for an application

Uses Claude AI to analyze an application and provide a detailed risk assessment, focusing on business stability, financial health, industry risk factors, merchant reputation, and compliance.

Authentication Required

Authorization: Bearer {token}   header string

This header is required to access this endpoint

Required Parameters

x-account-id   header string

Account ID for the request

applicationId   path string

The ID of the application to analyze

Request Body

{}

Try it out

Loading...

Output:

Responses

Description

AI analysis generated successfully

{
"timestamp": "string",
"applicationId": "string",
"aiAnalysis": "string",
"model": "claude-3-opus-20240229"
}

References

#/components/parameters/xAccountIdHeader

in: header
name: x-account-id
schema:
type: string
description: Account ID for the request
required: true
example: "2311"

#/components/schemas/AIAnalysis

type: object
description: AI-generated analysis of an application
properties:
timestamp:
type: string
format: date-time
description: When the analysis was generated
applicationId:
type: string
description: ID of the analyzed application
aiAnalysis:
type: string
description: The detailed analysis text generated by the AI model
model:
type: string
description: The AI model used for analysis
example: claude-3-opus-20240229
required:
- timestamp
- applicationId
- aiAnalysis
- model

Route Source Code

Check out the source code for this route entrypoint here: /applications/[applicationId]/ai-analysis/route.ts

Or the swagger.yaml spec this documentation was generated from: /applications/swagger.yaml