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

# Get an account connection

> Requires `account:read`.



## OpenAPI

````yaml /openapi/portfobit-openapi.yaml get /accounts/{account_id}
openapi: 3.1.0
info:
  title: Portfobit Open API
  version: 0.1.0
  description: >
    Public REST API for direct API clients, CI, scripts, service accounts,
    third-party agents, and developer integrations.

    Public REST requests use scoped Portfobit Open API keys. OAuth access tokens
    issued for the Portfobit MCP resource are not accepted by `/api/v1/*`
    endpoints.

    Portfobit is crypto-CEX-only. Financial values are decimal strings and
    timestamps are RFC 3339 UTC strings.

    The API never supports withdrawals, external-address transfers,
    cross-exchange transfers, or P2P transfers.
servers:
  - url: https://api.portfobit.com/api/v1
security:
  - bearerAuth: []
tags:
  - name: Context
  - name: Accounts
  - name: Portfolios
  - name: Valuation
  - name: Activity
  - name: Trading
  - name: Market data
  - name: Support
paths:
  /accounts/{account_id}:
    get:
      tags:
        - Accounts
      summary: Get an account connection
      description: Requires `account:read`.
      operationId: getAccount
      parameters:
        - $ref: '#/components/parameters/AccountId'
      responses:
        '200':
          $ref: '#/components/responses/AccountResponse'
        default:
          $ref: '#/components/responses/ErrorResponse'
components:
  parameters:
    AccountId:
      name: account_id
      in: path
      required: true
      schema:
        type: string
      description: Connected CEX account ID.
  responses:
    AccountResponse:
      description: Account response.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/AccountResponseSchema'
    ErrorResponse:
      description: Error response
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
  schemas:
    AccountResponseSchema:
      type: object
      required:
        - data
        - meta
      properties:
        data:
          type: object
          required:
            - id
            - connector_id
            - name
            - venue
            - market_type
            - tags
            - portfolio_ids
            - api_key_masked
            - requested_permissions
            - inspectable_permissions
            - permission_status
            - permission_issue_code
            - status
            - subscription_access
            - last_synced_at
            - created_at
            - updated_at
          properties:
            id:
              type: string
            connector_id:
              type: string
            name:
              type: string
            venue:
              type: string
            market_type:
              type: string
            tags:
              type: array
              items:
                type: string
            portfolio_ids:
              type: array
              items:
                type: string
            api_key_masked:
              type: string
            requested_permissions:
              type: object
              required:
                - read
                - trade
                - transfer
                - withdraw
              properties:
                read:
                  type: boolean
                trade:
                  type: boolean
                transfer:
                  type: boolean
                withdraw:
                  type: boolean
            permission_status:
              type: string
              enum:
                - unknown
                - checking
                - verified
                - partially_verified
                - unverified
                - mismatch
                - invalid
                - check_failed
              description: >-
                Aggregate permission verification result. `partially_verified`
                means every inspectable capability is known and matches the
                user's declaration, while the connector cannot inspect all four
                capabilities; it is an informational coverage limitation, not a
                credential failure.
            permission_issue_code:
              type:
                - string
                - 'null'
            inspectable_permissions:
              type: array
              description: >-
                Capabilities covered by the latest permission check. This is
                verification coverage and does not reveal which permissions the
                API key has.
              items:
                type: string
                enum:
                  - read
                  - trade
                  - transfer
                  - withdraw
            status:
              type: string
            subscription_access:
              type: string
            last_synced_at:
              type: string
              format: date-time
            created_at:
              type: string
              format: date-time
            updated_at:
              type: string
              format: date-time
        meta:
          type: object
          required:
            - request_id
            - generated_at
          properties:
            request_id:
              type: string
            generated_at:
              type: string
              format: date-time
      example:
        data:
          id: acc_01H8XFK9A
          connector_id: con_binance
          name: Binance_Main
          venue: binance
          market_type: crypto
          tags:
            - Long_Term
          portfolio_ids:
            - pf_01J2K7M9N3
          api_key_masked: VMx8_ellipsis_9Lp2
          requested_permissions:
            read: true
            trade: false
            transfer: false
            withdraw: false
          permission_status: verified
          permission_issue_code: null
          inspectable_permissions:
            - read
            - trade
            - transfer
            - withdraw
          status: active
          subscription_access: available
          last_synced_at: '2026-08-07T08:00:00Z'
          created_at: '2026-08-01T00:00:00Z'
          updated_at: '2026-08-07T08:00:00Z'
        meta:
          request_id: req_01J2K8B7QW
          generated_at: '2026-08-07T08:00:01Z'
    ErrorEnvelope:
      type: object
      required:
        - error
        - meta
      properties:
        error:
          $ref: '#/components/schemas/Error'
        meta:
          $ref: '#/components/schemas/Meta'
    Error:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
        message:
          type: string
        details:
          type: object
          additionalProperties: true
    Meta:
      type: object
      required:
        - request_id
        - generated_at
      properties:
        request_id:
          type: string
        generated_at:
          type: string
          format: date-time
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Portfobit Open API key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.