QuickLink
Request quick link code
POST
/
quicklink
/
{token}
/
code
Request quick link code
curl --request POST \
--url https://api.polymorfa.com/quicklink/{token}/code \
--header 'Content-Type: application/json' \
--data '
{
"phone": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({phone: '<string>'})
};
fetch('https://api.polymorfa.com/quicklink/{token}/code', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.polymorfa.com/quicklink/{token}/code"
payload = { "phone": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.polymorfa.com/quicklink/{token}/code"
payload := strings.NewReader("{\n \"phone\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}false{
"data": {
"code": "<string>",
"phone": "<string>"
}
}{
"error": "<string>",
"docs": "<string>"
}{
"error": "<string>",
"docs": "<string>"
}{
"error": "<string>",
"docs": "<string>"
}{
"error": "<string>",
"docs": "<string>"
}{
"error": "<string>",
"docs": "<string>"
}Path Parameters
Opaque token required by the target operation. Opaque QuickLink token from the hosted URL.
Body
application/json
Phone number in international format.
Value constraints
| Constraint | Accepted input |
|---|---|
| String length | 6 through 20 characters |
Required string length:
6 - 20Response
Pairing code issued
Structured data carried by this object.
Show child attributes
Show child attributes
⌘I
Request quick link code
curl --request POST \
--url https://api.polymorfa.com/quicklink/{token}/code \
--header 'Content-Type: application/json' \
--data '
{
"phone": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({phone: '<string>'})
};
fetch('https://api.polymorfa.com/quicklink/{token}/code', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.polymorfa.com/quicklink/{token}/code"
payload = { "phone": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.polymorfa.com/quicklink/{token}/code"
payload := strings.NewReader("{\n \"phone\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}false{
"data": {
"code": "<string>",
"phone": "<string>"
}
}{
"error": "<string>",
"docs": "<string>"
}{
"error": "<string>",
"docs": "<string>"
}{
"error": "<string>",
"docs": "<string>"
}{
"error": "<string>",
"docs": "<string>"
}{
"error": "<string>",
"docs": "<string>"
}