Request a SIWE challenge
curl --request POST \
--url https://{host}/extern/fe/auth/challenge \
--header 'Content-Type: application/json' \
--header 'X-Publishable-Key: <api-key>' \
--data '
{
"address": "0x1234567890abcdef1234567890abcdef12345678"
}
'const options = {
method: 'POST',
headers: {'X-Publishable-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({address: '0x1234567890abcdef1234567890abcdef12345678'})
};
fetch('https://{host}/extern/fe/auth/challenge', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{host}/extern/fe/auth/challenge"
payload = { "address": "0x1234567890abcdef1234567890abcdef12345678" }
headers = {
"X-Publishable-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"status": "success",
"data": {
"message": "<string>",
"nonce": "<string>"
}
}{
"status": "error",
"code": "INTENT_WRONG_STATUS",
"message": "Session must be in OPEN status for this action."
}{
"status": "error",
"code": "INTENT_WRONG_STATUS",
"message": "Session must be in OPEN status for this action."
}{
"status": "error",
"code": "INTENT_WRONG_STATUS",
"message": "Session must be in OPEN status for this action."
}{
"status": "error",
"code": "INTENT_WRONG_STATUS",
"message": "Session must be in OPEN status for this action."
}{
"status": "error",
"code": "INTENT_WRONG_STATUS",
"message": "Session must be in OPEN status for this action."
}{
"status": "error",
"code": "INTENT_WRONG_STATUS",
"message": "Session must be in OPEN status for this action."
}Request a SIWE challenge
POST
/
extern
/
fe
/
auth
/
challenge
Request a SIWE challenge
curl --request POST \
--url https://{host}/extern/fe/auth/challenge \
--header 'Content-Type: application/json' \
--header 'X-Publishable-Key: <api-key>' \
--data '
{
"address": "0x1234567890abcdef1234567890abcdef12345678"
}
'const options = {
method: 'POST',
headers: {'X-Publishable-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({address: '0x1234567890abcdef1234567890abcdef12345678'})
};
fetch('https://{host}/extern/fe/auth/challenge', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://{host}/extern/fe/auth/challenge"
payload = { "address": "0x1234567890abcdef1234567890abcdef12345678" }
headers = {
"X-Publishable-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"status": "success",
"data": {
"message": "<string>",
"nonce": "<string>"
}
}{
"status": "error",
"code": "INTENT_WRONG_STATUS",
"message": "Session must be in OPEN status for this action."
}{
"status": "error",
"code": "INTENT_WRONG_STATUS",
"message": "Session must be in OPEN status for this action."
}{
"status": "error",
"code": "INTENT_WRONG_STATUS",
"message": "Session must be in OPEN status for this action."
}{
"status": "error",
"code": "INTENT_WRONG_STATUS",
"message": "Session must be in OPEN status for this action."
}{
"status": "error",
"code": "INTENT_WRONG_STATUS",
"message": "Session must be in OPEN status for this action."
}{
"status": "error",
"code": "INTENT_WRONG_STATUS",
"message": "Session must be in OPEN status for this action."
}Authorizations
Account Type publishable key (pk_live_...)
Body
application/json
Last modified on July 24, 2026
Was this page helpful?