Configure Google Flow Account
November 17, 2025
Table of contents
Configure your Google Flow account for API access using cookies from your authenticated Google account.
You can configure up to 50 Google Flow accounts per single useapi.net subscription.
https://api.useapi.net/v1/google-flow/accounts
Request Headers
Authorization: Bearer {API token}
Content-Type: application/json
# Alternatively you can use multipart/form-data
# Content-Type: multipart/form-data
API tokenis required, see Setup useapi.net for details.
Request Body
{
"cookies": "Name\tValue\tDomain\tPath\tExpires\t..."
}
cookiesis required. Cookies copied from Chrome DevTools in table format. See Setup Google Flow for detailed instructions on how to obtain these cookies.
Responses
-
New account configuration created successfully.
{ "accountCookies": [ { "name": "HSID", "value": "AYQ...(redacted)", "domain": ".google.com", "path": "/", "expires": "2027-11-10T12:00:00.000Z", "httpOnly": true, "secure": false, "sameSite": "Lax" } ], "sessionCookies": [ { "name": "__Host-GAPS", "value": "1:eJy...(redacted)", "domain": "labs.google", "path": "/", "expires": "2025-12-10T12:00:00.000Z", "httpOnly": true, "secure": true, "sameSite": "Lax" } ], "sessionData": { "user": { "name": "John Doe", "email": "jo***@gmail.com", "image": "https://lh3.googleusercontent.com/a/..." }, "expires": "2025-11-11T12:00:00.000Z", "access_token": "ya29.a0A...(redacted)" }, "created": "2025-11-10T12:00:00.000Z", "project": { "projectId": "3b1c0e9d-7a6f-4592-8d38-7f9e1b4c6a5d", "projectTitle": "Nov 11 - 02:56" }, "nextRefresh": { "messageId": "msg-abc123", "scheduledFor": "2025-11-11T11:00:00.000Z" } } -
Existing account configuration updated successfully.
{ "accountCookies": [ { "name": "HSID", "value": "AYQ...(redacted)", "domain": ".google.com", "path": "/", "expires": "2027-11-10T12:00:00.000Z", "httpOnly": true, "secure": false, "sameSite": "Lax" } ], "sessionCookies": [ { "name": "__Host-GAPS", "value": "1:eJy...(redacted)", "domain": "labs.google", "path": "/", "expires": "2025-12-10T12:00:00.000Z", "httpOnly": true, "secure": true, "sameSite": "Lax" } ], "sessionData": { "user": { "name": "John Doe", "email": "jo***@gmail.com", "image": "https://lh3.googleusercontent.com/a/..." }, "expires": "2025-11-11T12:00:00.000Z", "access_token": "ya29.a0A...(redacted)" }, "created": "2025-11-10T12:00:00.000Z", "project": { "projectId": "3b1c0e9d-7a6f-4592-8d38-7f9e1b4c6a5d", "projectTitle": "Nov 11 - 02:56" }, "nextRefresh": { "messageId": "msg-abc123", "scheduledFor": "2025-11-11T11:00:00.000Z" } } -
Validation error (missing/invalid parameters or cookies).
{ "error": "Failed to validate cookies: 401 Unauthorized" } -
Invalid API token.
{ "error": "Unauthorized" } -
Subscription expired or insufficient credits.
{ "error": "Account has no subscription or subscription expired" }
Model
created- ISO 8601 timestamp when the account was first configuredaccountCookies- Google account cookiessessionCookies- Session cookies for Google FlowsessionData- User session information with access tokenproject- Auto-created Google Flow project for this sessionnextRefresh- Scheduled refresh details (refreshes automatically 1 hour before expiry)
{ // TypeScript, all fields are optional
created: string // ISO 8601 timestamp
accountCookies: Array<{
name: string
value: string
domain: string
path: string
expires: string | number
httpOnly: boolean
secure: boolean
sameSite: 'Lax' | 'Strict' | 'None'
}>
sessionCookies: Array<{
name: string
value: string
domain: string
path: string
expires: string | number
httpOnly: boolean
secure: boolean
sameSite: 'Lax' | 'Strict' | 'None'
}>
sessionData: {
user: {
name: string
email: string
image: string
}
expires: string // ISO 8601 timestamp
access_token: string
}
project: {
projectId: string
projectTitle: string
}
nextRefresh: {
messageId: string
scheduledFor: string // ISO 8601 timestamp
}
health?: string // "OK" | "Error information"
error?: string // Error message
}
Examples
-
curl -H "Accept: application/json" \ -H "Content-Type: application/json" \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -X POST "https://api.useapi.net/v1/google-flow/accounts" \ -d '{ "cookies": "HSID\tAYQ...\t.google.com\t/\t2027-11-10...\nSSID\tAbc...\t.google.com\t/\t2027-11-10..." }' -
const apiUrl = 'https://api.useapi.net/v1/google-flow/accounts'; const token = 'YOUR_API_TOKEN'; const cookies = `HSID\tAYQ...\t.google.com\t/\t2027-11-10... SSID\tAbc...\t.google.com\t/\t2027-11-10...`; const response = await fetch(apiUrl, { method: 'POST', headers: { 'Authorization': `Bearer ${token}`, 'Content-Type': 'application/json' }, body: JSON.stringify({ cookies: cookies }) }); const result = await response.json(); console.log('Account configured:', result); -
import requests apiUrl = 'https://api.useapi.net/v1/google-flow/accounts' token = 'YOUR_API_TOKEN' cookies = """HSID\tAYQ...\t.google.com\t/\t2027-11-10... SSID\tAbc...\t.google.com\t/\t2027-11-10...""" headers = { 'Content-Type': 'application/json', 'Authorization': f'Bearer {token}' } body = { 'cookies': cookies } response = requests.post(apiUrl, headers=headers, json=body) print(response.status_code, response.json())
Try It
See Setup Google Flow page.