Skip to main content
GET
/
instances
/
{instanceId}
/
token
/
{token}
/
phone-code
/
{phone}
Connect with phone
curl --request GET \
  --url https://api.z-api.io/instances/{instanceId}/token/{token}/phone-code/{phone} \
  --header 'Client-Token: <api-key>'

Documentation Index

Fetch the complete documentation index at: https://developer.z-api.io/llms.txt

Use this file to discover all available pages before exploring further.

Overview

Allows connection without scanning the QRCode, using the “Connect with phone number” feature.

Attributes

instanceId
string
required
Your instance ID. Available in the Z-API panel under Instances.
token
string
required
Your Z-API instance token.

Path

phone
string
required
Phone number with country code (e.g.: 5511999999999)

Response

200

{
  "value": "A1B2C3D4E5"
}

405

Make sure you are correctly sending the method specification, that is, verify that you sent POST or GET as specified at the beginning of this topic.