GetToken
API
API
/v2/token
Title
GetToken
Description
Sign in Tako
Method
POST
Request Parameters
message
string
YES
Format:
\nACCOUNT:\n{EVM-compatible Address}\nISSUED AT:\n{Time in RFC3339 format}\n\n
NOTE: The message structure above must be included, additional content can be added at the beginning and end of the message.
For example:
Tako wants you to sign in with your Ethereum account.\n\nThis request will not trigger a blockchain transaction or cost any gas fees.\n\nACCOUNT:\n0x4DD3DB5d0B9aAf0B0a2fBD37a489d2f0e3F234A9\n\nISSUED AT:\n2023-08-01T10:29:31.000Z\n
What looks like on the user’s wallet signing page, such as Metamask:
Tako wants you to sign in with your Ethereum account.
This request will not trigger a blockchain transaction or cost any gas fees.
ACCOUNT:
0x4DD3DB5d0B9aAf0B0a2fBD37a489d2f0e3F234A9
ISSUED AT:
2023-08-01T10:29:31.000Z
signature
string
YES
Elliptic curve signing of the message.
Parameter Content Type
application/json
Request and Response Example
Request
cURL Code
Request URL
https://api.tako.so/v2/token
Response
NOTE: The token is the only credential to access APIs, so you must save it securely. Its validity period is
3600
seconds. You can use the refresh_token to refresh the token. Its validity period is86400
seconds.
Last updated