Welcome!
What did you do?
Created a fresh instance using the /instance/create endpoint.
Attempted to generate a WhatsApp pairing code by calling POST /instance/pair.
Used the correct apikey (instance token) and provided the phone number in the request body.
Retried the request multiple times with a 2-second delay between attempts to see if the provider needed time to initialize.
What did you expect?
I expected the API to return a valid 8-character pairing code (e.g., ABCD-1234) that can be entered into the "Link with Phone Number" section of the WhatsApp app.
What did you observe instead of what you expected?
The response body contains an empty string for the pairing code, making it impossible to link the device via phone number.
Actual Response Body:
What did you observe instead of what you expected?
The API consistently returns a 200 OK response with a "message": "success", but the actual PairingCode field inside the data object is an empty string "".
Request:
`POST /instance/pair
Content-Type: application/json
apikey: [MASKED_INSTANCE_TOKEN]
{
"phone": "XXXXXXXXXXXX"
}
`
Screenshots/Videos
No response
Which version are you using?
0.6.1
What is your environment?
Mac
If applicable, paste the log output
INFO EvolutionService : Evolution API Response [Attempt 1]: {"data":{"PairingCode":""},"message":"success"}
WARN EvolutionService : Pairing code empty on attempt 1, retrying in 2s...
INFO EvolutionService : Evolution API Response [Attempt 2]: {"data":{"PairingCode":""},"message":"success"}
WARN EvolutionService : Pairing code empty on attempt 2, retrying in 2s...
INFO EvolutionService : Evolution API Response [Attempt 3]: {"data":{"PairingCode":""},"message":"success"}
WARN EvolutionService : Pairing code empty on attempt 3, retrying in 2s...
ERROR EvolutionService : Pairing code not generated after 3 attempts
Additional Notes
The same instance works fine for QR code generation via /instance/qr, but specifically the /instance/pair functionality seems to be failing to return the generated code.
Welcome!
What did you do?
Created a fresh instance using the /instance/create endpoint.
Attempted to generate a WhatsApp pairing code by calling POST /instance/pair.
Used the correct apikey (instance token) and provided the phone number in the request body.
Retried the request multiple times with a 2-second delay between attempts to see if the provider needed time to initialize.
What did you expect?
I expected the API to return a valid 8-character pairing code (e.g., ABCD-1234) that can be entered into the "Link with Phone Number" section of the WhatsApp app.
What did you observe instead of what you expected?
The response body contains an empty string for the pairing code, making it impossible to link the device via phone number.
Actual Response Body:
What did you observe instead of what you expected?
The API consistently returns a 200 OK response with a "message": "success", but the actual PairingCode field inside the data object is an empty string "".
Request:
`POST /instance/pair
Content-Type: application/json
apikey: [MASKED_INSTANCE_TOKEN]
{
"phone": "XXXXXXXXXXXX"
}
`
Screenshots/Videos
No response
Which version are you using?
0.6.1
What is your environment?
Mac
If applicable, paste the log output
INFO EvolutionService : Evolution API Response [Attempt 1]: {"data":{"PairingCode":""},"message":"success"}
WARN EvolutionService : Pairing code empty on attempt 1, retrying in 2s...
INFO EvolutionService : Evolution API Response [Attempt 2]: {"data":{"PairingCode":""},"message":"success"}
WARN EvolutionService : Pairing code empty on attempt 2, retrying in 2s...
INFO EvolutionService : Evolution API Response [Attempt 3]: {"data":{"PairingCode":""},"message":"success"}
WARN EvolutionService : Pairing code empty on attempt 3, retrying in 2s...
ERROR EvolutionService : Pairing code not generated after 3 attempts
Additional Notes
The same instance works fine for QR code generation via /instance/qr, but specifically the /instance/pair functionality seems to be failing to return the generated code.