Skip to content

Commit cf9f15d

Browse files
authored
Update programmable-gateway.md
1 parent ff8217a commit cf9f15d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/tools-infrastructure/programmable-gateway.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ const data = await msgRes.json();
5454

5555
**Endpoint:** `POST /v1/authenticate?token=$EncryptionToken`
5656

57-
Submits a signed message in the format "Register <userID> for <account>", proving ownership of the private keys for the account, and links that account with the userID.
57+
Submits a signed message in the format address & signature, proving ownership of the private keys for the account, and links that account with the encryption token.
5858

5959
```bash
6060
curl -X POST "https://testnet.ten.xyz/v1/authenticate/?token=$EncryptionToken" \
@@ -88,14 +88,14 @@ curl -X GET "https://testnet.ten.xyz/v1/query/address?token=$EncryptionToken&a=$
8888

8989
```javascript
9090
const response = await fetch(`https://testnet.ten.xyz/v1/query/address?token=${token}&a=${address}`);
91-
const data = await response.json();
91+
const data = await response.text();
9292
```
9393

9494
## 5. Revoke Access
9595

9696
**Endpoint:** `POST /v1/revoke?token=$EncryptionToken`
9797

98-
Deletes userID and associated viewing keys.
98+
Deletes encryption token associated with the account.
9999

100100
```bash
101101
curl -X POST "https://testnet.ten.xyz/v1/revoke?token=abc123"

0 commit comments

Comments
 (0)