cURL
curl --request POST \
--url https://api.example.com/insert-authenticator \
--header 'Content-Type: application/json' \
--data '
{
"leaf_index": "<string>",
"new_authenticator_address": "<string>",
"new_authenticator_pubkey": "<string>",
"new_offchain_signer_commitment": "<string>",
"nonce": "<string>",
"old_offchain_signer_commitment": "<string>",
"pubkey_id": "<string>",
"signature": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
leaf_index: '<string>',
new_authenticator_address: '<string>',
new_authenticator_pubkey: '<string>',
new_offchain_signer_commitment: '<string>',
nonce: '<string>',
old_offchain_signer_commitment: '<string>',
pubkey_id: '<string>',
signature: '<string>'
})
};
fetch('https://api.example.com/insert-authenticator', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"kind": "create_account",
"request_id": "<string>",
"status": {
"state": "queued"
}
}{
"code": "internal_server_error",
"message": "<string>"
}World ID Gateway
Post insert authenticator
POST
/
insert-authenticator
cURL
curl --request POST \
--url https://api.example.com/insert-authenticator \
--header 'Content-Type: application/json' \
--data '
{
"leaf_index": "<string>",
"new_authenticator_address": "<string>",
"new_authenticator_pubkey": "<string>",
"new_offchain_signer_commitment": "<string>",
"nonce": "<string>",
"old_offchain_signer_commitment": "<string>",
"pubkey_id": "<string>",
"signature": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
leaf_index: '<string>',
new_authenticator_address: '<string>',
new_authenticator_pubkey: '<string>',
new_offchain_signer_commitment: '<string>',
nonce: '<string>',
old_offchain_signer_commitment: '<string>',
pubkey_id: '<string>',
signature: '<string>'
})
};
fetch('https://api.example.com/insert-authenticator', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"kind": "create_account",
"request_id": "<string>",
"status": {
"state": "queued"
}
}{
"code": "internal_server_error",
"message": "<string>"
}Body
application/json
The request to insert an authenticator.
Numeric string fields in this request accept decimal or 0x/0X-prefixed hex.
Response
TODO
Response returned by the registry gateway for state-changing requests.
Was this page helpful?