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

# Get latest intent action

> Returns the latest recorded action for an intent on the requested trading account. Service-account callers must provide `x-organization-id` and have `intent:read`; API-key callers need organization intent read permission; user callers need an organization admin, member, or read-only role. Non-service callers can only read their principal organization, and the trading account must belong to the resolved organization.



## OpenAPI

````yaml /api-reference/intents.openapi.json get /v1/accounts/{account_id}/intents/{intent_id}
openapi: 3.1.0
info:
  title: intents
  description: ''
  license:
    name: ''
  version: 0.1.0
servers:
  - url: https://api.anthid.com
    description: Production
security: []
tags:
  - name: Intents
    description: Intent submission operations
  - name: Intents
    description: Single-intent read operations
  - name: Intents
    description: Intent action listing operations
  - name: Intents
    description: Intent aggregate statistics
paths:
  /v1/accounts/{account_id}/intents/{intent_id}:
    get:
      tags:
        - Intents
      summary: Get latest intent action
      description: >-
        Returns the latest recorded action for an intent on the requested
        trading account. Service-account callers must provide
        `x-organization-id` and have `intent:read`; API-key callers need
        organization intent read permission; user callers need an organization
        admin, member, or read-only role. Non-service callers can only read
        their principal organization, and the trading account must belong to the
        resolved organization.
      operationId: getIntent
      parameters:
        - name: account_id
          in: path
          description: Trading account id that owns the intent
          required: true
          schema:
            type: string
            format: uuid
        - name: intent_id
          in: path
          description: Intent id to fetch
          required: true
          schema:
            type: string
            format: uuid
        - name: x-organization-id
          in: header
          description: >-
            Organization id required when reading with service-account
            credentials
          required: false
          schema:
            type:
              - string
              - 'null'
            format: uuid
      responses:
        '200':
          description: Latest intent action retrieved
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/IntentActionRecord'
        '400':
          description: Path parameters or organization scope are invalid
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Missing or invalid authentication credentials
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            Caller lacks read permission, organization access, or ownership of
            the trading account
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: No intent action exists for the provided id and account
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Caller exceeded the request rate limit
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Unexpected server error while reading the intent
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
        - clientCredentials: []
        - apiKeyAuth: []
components:
  schemas:
    IntentActionRecord:
      type: object
      required:
        - organization_id
        - account_id
        - intent_id
        - seq
        - action_type
        - symbol
        - order_side
        - order_type
        - route_strategy
        - quantity
        - created_at
      properties:
        account_id:
          type: string
          format: uuid
        action_type:
          $ref: '#/components/schemas/ActionType'
        client_reference_id:
          type:
            - string
            - 'null'
        created_at:
          type: string
          format: date-time
        intent_id:
          type: string
          format: uuid
        limit_price:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Price'
        order_side:
          $ref: '#/components/schemas/OrderSide'
        order_type:
          $ref: '#/components/schemas/OrderType'
        organization_id:
          type: string
          format: uuid
        quantity:
          $ref: '#/components/schemas/Quantity'
        route_strategy:
          $ref: '#/components/schemas/RouteStrategy'
        seq:
          type: integer
          format: int64
        stop_price:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/Price'
        symbol:
          type: string
        time_in_force:
          oneOf:
            - type: 'null'
            - $ref: '#/components/schemas/TimeInForce'
    Error:
      oneOf:
        - type: object
          required:
            - EncryptionError
          properties:
            EncryptionError:
              type: string
        - type: object
          required:
            - WorkOsError
          properties:
            WorkOsError:
              type: string
        - type: object
          required:
            - KvError
          properties:
            KvError:
              type: string
        - type: object
          required:
            - StreamError
          properties:
            StreamError:
              type: string
        - type: object
          required:
            - InternalError
          properties:
            InternalError:
              type: string
        - type: object
          required:
            - ThirdPartyError
          properties:
            ThirdPartyError:
              type: string
        - type: object
          required:
            - ParseError
          properties:
            ParseError:
              type: string
        - type: object
          required:
            - NotFound
          properties:
            NotFound:
              type: string
        - type: object
          required:
            - AlreadyExists
          properties:
            AlreadyExists:
              type: string
        - type: object
          required:
            - BadRequest
          properties:
            BadRequest:
              type: string
        - type: object
          required:
            - Forbidden
          properties:
            Forbidden:
              type: string
        - type: object
          required:
            - Unauthorized
          properties:
            Unauthorized:
              type: string
        - type: object
          required:
            - Database
          properties:
            Database:
              type: string
        - type: object
          required:
            - TooManyRequests
          properties:
            TooManyRequests:
              type: string
        - type: object
          required:
            - BrokerError
          properties:
            BrokerError:
              type: string
        - type: object
          required:
            - AuthError
          properties:
            AuthError:
              type: string
        - type: object
          required:
            - InvalidInput
          properties:
            InvalidInput:
              type: string
        - type: object
          required:
            - ConnectionLimitExceeded
          properties:
            ConnectionLimitExceeded:
              type: string
    ActionType:
      type: string
      enum:
        - CREATE
        - REPLACE
        - CANCEL
    Price:
      type: string
    OrderSide:
      type: string
      enum:
        - UNSPECIFIED
        - BUY
        - SELL
        - SELL_SHORT
    OrderType:
      type: string
      enum:
        - UNSPECIFIED
        - LIMIT
        - MARKET
        - FILL_OR_KILL
        - LIMIT_ON_OPEN
        - LIMIT_ON_CLOSE
        - MARKET_ON_OPEN
        - MARKET_ON_CLOSE
        - STOP
        - STOP_LIMIT
        - TRAILING_STOP
    Quantity:
      type: string
    RouteStrategy:
      type: string
      enum:
        - UNSPECIFIED
        - SMART
        - AMEX
        - ARCA
        - BATS
        - BATY
        - EDGA
        - EDGX
        - NSDQ
        - NYSE
    TimeInForce:
      type: string
      enum:
        - UNSPECIFIED
        - DAY
        - IMMEDIATE_OR_CANCEL
        - GOOD_TILL_CANCEL
        - AT_OPEN
        - AT_CLOSE
        - FILL_OR_KILL
        - EXT
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
    clientCredentials:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Machine bearer token minted via the client_credentials grant.
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````