Skip to main content

Instance data

Concept#

This method allows you to obtain the data of your instance.


Method#

/me#

GET https://api.z-api.io/instances/YOUR_INSTANCE/token/YOUR_TOKEN/me

Header#

KeyValue
Client-TokenACCOUNT SECURITY TOKEN

Response#

200#

AttributeTypeDescription
idstringInstance ID
tokenstringInstance token
namestringInstance name
connectedbooleanDefines if the instance is connected
paymentStatusstringDefines the payment status of the instance
createdDateCreation date of the instance
connectedCallbackUrlstringConnection webhook URL
deliveryCallbackUrlstringMessage delivery webhook URL
disconnectedCallbackUrlstringDisconnection webhook URL
messageStatusCallbackUrlstringMessage status webhook URL
presenceChatCallbackUrlstringChat presence webhook URL
receivedCallbackUrlstringReceived message webhook URL
receiveCallbackSentByMebooleanDefines if webhook will receive messages sent by the instance itself
callRejectAutobooleanDefines if it will automatically reject an incoming call
callRejectMessagestringMessage to be sent when rejecting a call
autoReadMessagebooleanDefines if it will automatically mark received messages as read
initialDataCallbackUrlstringInitial data webhook URL after connection

Code#