List All Configured Accounts

November 17, 2025 (December 1, 2025)

Table of contents

  1. Request Headers
  2. Responses
  3. Model
  4. Examples
  5. Try It

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}

Responses

  • 200 OK

    Returns a map of all configured accounts, keyed by email address.

    {
      "a***@gmail.com": {
        "created": "2025-11-09T22:02:04.802Z",
        "health": "OK",
        "nextRefresh": {
          "scheduledFor": "2025-12-01T11:46:01.000Z"
        },
        "project": {
          "projectId": "a7e08e13-a6ea-4945-9841-cb4147e4f024",
          "projectTitle": "Nov 11 - 02:56"
        },
        "sessionData": {
          "expires": "2025-12-01T12:46:01.000Z"
        }
      },
      "b***@gmail.com": {
        "created": "2025-11-10T02:56:58.864Z",
        "health": "OK",
        "nextRefresh": {
          "scheduledFor": "2025-12-01T09:13:16.000Z"
        },
        "project": {
          "projectId": "47050a10-06f4-4469-8ab0-6d294c703508",
          "projectTitle": "Nov 11 - 02:56"
        },
        "sessionData": {
          "expires": "2025-12-01T10:13:16.000Z"
        }
      }
    }
    

    If no accounts are configured, returns an empty object {}.

  • 401 Unauthorized

    Invalid API token.

    {
      "error": "Unauthorized"
    }
    

Model

// Map of email to account summary
{
  [email: string]: {
    health: string               // "OK" | "<error>"
    error?: string               // Error message if health check failed
    created?: string             // ISO 8601 timestamp
    sessionData?: {
      expires: string            // ISO 8601 timestamp
    }
    project?: {
      projectId: string
      projectTitle: string
    }
    nextRefresh?: {
      scheduledFor: string       // ISO 8601 timestamp
    }
  }
}

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())
    

Try It