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

# Information Query

> Sends an Information Query (iq) to an entity on the XMPP network, given its Full JID.

## Overview

Sends an Information Query (iq) to an entity on the XMPP network, given its Full JID. For connected entities, you need to have an presence subscription to that entity, approved by the entity, to get the Full JID. You get the Full JID using the Presence Probe resource.

## Authentication

Requires a valid JWT bearer token.

## Notes

This endpoint uses the request schema notation described in [Pattern matching](/guides/pattern-matching).


## OpenAPI

````yaml /test-api/openapi.yaml post /Agent/Xmpp/InformationQuery
openapi: 3.1.0
info:
  title: Neuron Agent API
  version: 1.0.0
  description: |-
    The Agent API exposes core Neuron functionality over HTTP so services can
    operate without a persistent XMPP connection. Endpoints are grouped by
    capability, starting with Accounts and XMPP messaging.
servers:
  - url: https://{host}
    variables:
      host:
        default: neuron.example.com
        description: Neuron domain issued to you.
security:
  - bearerAuth: []
tags:
  - name: Accounts
  - name: Crypto
  - name: Open intelligence
  - name: Legal and contracts
  - name: State machines
  - name: Storage
  - name: Tokens
  - name: Wallet
  - name: XMPP messaging
paths:
  /Agent/Xmpp/InformationQuery:
    post:
      tags:
        - XMPP messaging
      summary: Information Query
      description: >-
        Sends an Information Query (iq) to an entity on the XMPP network, given
        its Full JID.
      operationId: post_Agent_Xmpp_InformationQuery
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                to:
                  type: string
                type:
                  type: string
                xml:
                  type: object
                  additionalProperties: true
              additionalProperties: true
              required:
                - to
                - type
                - xml
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                  errorCode:
                    type: integer
                  errorText:
                    type: string
                  errorType:
                    type: string
                  ErrorElement:
                    type: object
                    additionalProperties: true
                  Stanza:
                    type: object
                    additionalProperties: true
                additionalProperties: true
                required:
                  - ok
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````