List All Configured Accounts
November 17, 2025
Table of contents
List all configured Google Flow accounts.
To get a specific account use GET /accounts/email.
https://api.useapi.net/v1/google-flow/accounts
Request Headers
Authorization: Bearer {API token}
API tokenis required, see Setup useapi.net for details.
Responses
-
Returns a map of all configured accounts, keyed by email address.
{ "jo***@gmail.com": { "created": "2025-11-10T12:00:00.000Z", "accountCookies": [], "sessionCookies": [], "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)" }, "project": { "projectId": "3b1c0e9d-7a6f-4592-8d38-7f9e1b4c6a5d", "projectTitle": "Nov 11 - 02:56" }, "nextRefresh": { "messageId": "msg-abc123", "scheduledFor": "2025-11-11T11:00:00.000Z" }, "health": "OK" }, "an***@gmail.com": { "created": "2025-11-09T10:00:00.000Z", "accountCookies": [], "sessionCookies": [], "sessionData": { "user": { "name": "Jane Smith", "email": "an***@gmail.com", "image": "https://lh3.googleusercontent.com/a/..." }, "expires": "2025-11-10T10:00:00.000Z", "access_token": "ya29.a0A...(redacted)" }, "project": { "projectId": "7f8e2a4c-9d1b-5e3f-a0c7-4b8d6e9f1a2c", "projectTitle": "Nov 10 - 14:23" }, "nextRefresh": { "messageId": "msg-xyz789", "scheduledFor": "2025-11-10T09:00:00.000Z" }, "health": "OK" } }Note: Sensitive values (cookie values, access tokens) are redacted for security.
If no accounts are configured, returns an empty object
{}. -
Invalid API token.
{ "error": "Unauthorized" }
Model
// Map of email to account configuration
{
[email: string]: {
created: string // ISO 8601 timestamp
accountCookies: Array<{
name: string
value: string // Redacted
domain: string
path: string
expires: string | number
httpOnly: boolean
secure: boolean
sameSite: 'Lax' | 'Strict' | 'None'
}>
sessionCookies: Array<{ // Same structure
name: string
value: string // Redacted
domain: string
path: string
expires: string | number
httpOnly: boolean
secure: boolean
sameSite: 'Lax' | 'Strict' | 'None'
}>
sessionData: {
user: {
name: string
email: string // Partially masked
image: string
}
expires: string // ISO 8601 timestamp
access_token: string // Redacted
}
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 "Authorization: Bearer YOUR_API_TOKEN" \ "https://api.useapi.net/v1/google-flow/accounts" -
const token = 'YOUR_API_TOKEN'; const response = await fetch('https://api.useapi.net/v1/google-flow/accounts', { headers: { 'Authorization': `Bearer ${token}` } }); const accounts = await response.json(); console.log('Configured accounts:', accounts); -
import requests token = 'YOUR_API_TOKEN' headers = {'Authorization': f'Bearer {token}'} response = requests.get('https://api.useapi.net/v1/google-flow/accounts', headers=headers) print('All accounts:', response.json())