> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sprinter.tech/llms.txt
> Use this file to discover all available pages before exploring further.

# Credit Account Info

> Returns credit details including collateral value, debt, health factor, interest, principal, and due date for a user account across all credit tokens

<RequestExample>
  ```bash cURL theme={null}
  curl --request GET \
    --url 'https://api.sprinter.tech/credit/accounts/{account}/info'
  ```

  ```python Python theme={null}
  import requests

  response = requests.get("https://api.sprinter.tech/credit/accounts/{account}/info")
  print(response.json())
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch(
    "https://api.sprinter.tech/credit/accounts/{account}/info"
  );
  const data = await response.json();
  console.log(data);
  ```

  ```go Go theme={null}
  package main

  import (
  	"fmt"
  	"io"
  	"net/http"
  )

  func main() {
  	resp, _ := http.Get("https://api.sprinter.tech/credit/accounts/{account}/info")
  	defer resp.Body.Close()
  	body, _ := io.ReadAll(resp.Body)
  	fmt.Println(string(body))
  }
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "data": {
      "USDC": {
        "debt": "750.25",
        "dueDate": "2025-07-15T23:59:59Z",
        "healthFactor": "1.85",
        "interest": "12.34",
        "liquidationLimit": "900.00",
        "mHealthFactor": "1.10",
        "principal": "737.91",
        "remainingCreditCapacity": "1249.75",
        "totalCollateralValue": "2500.00",
        "totalCreditCapacity": "2000.00"
      }
    }
  }
  ```
</ResponseExample>

<Tip>
  **Machine-readable API spec:** [OpenAPI JSON](https://api.sprinter.tech/swagger/doc.json) | [Swagger UI](https://api.sprinter.tech/swagger/index.html)
</Tip>


## OpenAPI

````yaml get /credit/accounts/{account}/info
openapi: 3.0.0
info:
  contact: {}
  title: ''
  version: 0.0.1
servers:
  - url: https://api.sprinter.tech
    description: Production server
security: []
paths:
  /credit/accounts/{account}/info:
    get:
      tags:
        - Credit
      summary: Get user credit information
      description: >-
        Returns credit details including collateral value, debt, health factor,
        interest, principal, and due date for a user account across all credit
        tokens
      parameters:
        - example: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2'
          description: Ethereum account address
          name: account
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: User credit information
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/credit.GetCreditUserInfo.response'
        '400':
          description: Invalid account address
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/responses.ErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/responses.ErrorResponse'
components:
  schemas:
    credit.GetCreditUserInfo.response:
      type: object
      required:
        - data
      properties:
        data:
          description: map of credit token symbol (e.g., "USDC") to user credit info
          type: object
          additionalProperties:
            $ref: '#/components/schemas/credit.UserCreditInfoFMT'
    responses.ErrorResponse:
      type: object
      required:
        - error
      properties:
        debug:
          type: string
        error:
          type: string
    credit.UserCreditInfoFMT:
      type: object
      required:
        - debt
        - healthFactor
        - interest
        - liquidationLimit
        - mHealthFactor
        - principal
        - remainingCreditCapacity
        - totalCollateralValue
        - totalCreditCapacity
      properties:
        debt:
          description: Debt is the total amount of drawn credit plus accrued interest
          type: string
          example: '750.25'
        dueDate:
          description: |-
            DueDate is the repayment due date (derived from grace period end).
            Null when no active credit exists.
          type: string
          example: '2024-12-31T23:59:59Z'
        healthFactor:
          description: |-
            HealthFactor indicates liquidation safety
            (e.g. "0.4044", "1.25")
          type: string
          example: '1.25'
        interest:
          description: Interest accrued in USD (e.g. "12.34")
          type: string
          example: '12.34'
        liquidationLimit:
          description: >-
            LiquidationLimit is the collateral value threshold below which
            liquidation is triggered
          type: string
          example: '900.00'
        mHealthFactor:
          description: MHealthFactor is the maintenance health factor
          type: string
          example: '1.10'
        principal:
          description: Principal borrowed amount in USD (Debt − Interest)
          type: string
          example: '737.91'
        remainingCreditCapacity:
          description: >-
            RemainingCreditCapacity is the maximum credit available to the user
            taking into account debt and fixed fees.

            Note that this value is going to be the minimum of
            `remainingCreditCapacity(user)` and `immediateCreditCapacity` (see
            contracts).
          type: string
          example: '1500.50'
        totalCollateralValue:
          description: >-
            TotalCollateralValue is amount of deposited collateral value in
            token units displayed in highest denomination.
          type: string
          example: '1000.00'
        totalCreditCapacity:
          description: >-
            TotalCreditCapacity is the maximum credit available based on
            collateral in token units displayed in highest denomination.
          type: string
          example: '1500.50'

````