curl --request POST \
--url https://grid.squads.xyz/api/grid/v1/auth/refresh-session \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"encryption_public_key": "<string>",
"kms_payload": "<unknown>"
}
'{
"data": {
"kms_payload": {
"provider": "privy",
"session": {
"Privy": {
"privy_access_token": "<string>",
"refresh_token": "<string>",
"session": {
"expires_at": 1,
"wallets": [
{
"additional_signers": [
{
"signer_id": "<string>",
"override_policy_ids": [
"<string>"
]
}
],
"address": "<string>",
"chain_type": "solana",
"created_at": 1,
"id": "<string>",
"policy_ids": [
"<string>"
],
"exported_at": 1,
"imported_at": 1,
"owner_id": "<string>",
"public_key": "<string>"
}
],
"authorization_key": "<string>",
"encrypted_authorization_key": "<unknown>"
},
"token": "<string>",
"user_id": "<string>"
}
}
}
},
"metadata": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}curl --request POST \
--url https://grid.squads.xyz/api/grid/v1/auth/refresh-session \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"encryption_public_key": "<string>",
"kms_payload": "<unknown>"
}
'{
"data": {
"kms_payload": {
"provider": "privy",
"session": {
"Privy": {
"privy_access_token": "<string>",
"refresh_token": "<string>",
"session": {
"expires_at": 1,
"wallets": [
{
"additional_signers": [
{
"signer_id": "<string>",
"override_policy_ids": [
"<string>"
]
}
],
"address": "<string>",
"chain_type": "solana",
"created_at": 1,
"id": "<string>",
"policy_ids": [
"<string>"
],
"exported_at": 1,
"imported_at": 1,
"owner_id": "<string>",
"public_key": "<string>"
}
],
"authorization_key": "<string>",
"encrypted_authorization_key": "<unknown>"
},
"token": "<string>",
"user_id": "<string>"
}
}
}
},
"metadata": {
"request_id": "<string>",
"timestamp": "2023-11-07T05:31:56Z"
}
}Your Grid API key from the Grid Dashboard
HPKE public key for encryption
KMS provider payload (optional - if not provided, will use HTTP-only cookie)
Show child attributes
privy, dynamic, passkey, turnkey, external Show child attributes
Show child attributes
Show child attributes
x >= 0Show child attributes
solana, ethereum, cosmos, stellar, sui, tron, bitcoin-segwit x >= 0x >= 0x >= 0Session refreshed successfully
Show child attributes
Show child attributes
privy, dynamic, passkey, turnkey, external Show child attributes
Show child attributes
Show child attributes
x >= 0Show child attributes
solana, ethereum, cosmos, stellar, sui, tron, bitcoin-segwit x >= 0x >= 0x >= 0Show child attributes
Was this page helpful?