Skip to main content

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.

HTTP request

POST /Agent/Xmpp/InformationQuery

Authentication

Requires a valid JWT bearer token.

Request (JSON)

{
	"to":Required(Str(PTo)),
	"type":Required(Str(PType)),
	"xml":Required(Xml(PQuery))
}

Input parameters

ParameterDescription
PToBare JID of contact to whom the presence probe is directed.
PTypeType of Information Query. Must be get or set.
PQueryValid XML (or string-representation of valid XML) of the query to send.

Response (JSON)

{
	"ok": Required(Boolean(POk)),
	"errorCode": Optional(Int(PErrorCode)),
	"errorText": Optional(Str(PErrorText)),
	"errorType": Optional(Str(PErrorType)),
	"ErrorElement": Optional(PErrorElement),
	"Stanza": Optional(PStanza)
}

Response parameters

ParameterDescription
POkIf query executed without error.
PErrorCodeOptional error code, in case an error was returned.
PErrorTextOptional error text, in case an error was returned.
PErrorTypeOptional error type, in case an error was returned.
PContentAny XML content returned in the query result.

Notes

This endpoint uses the request schema notation described in Pattern matching.