curl --request GET \
--url https://api.village.do/v2/integrations \
--header 'Authorization: Bearer <token>'{
"data": {
"integrations": [
{
"id": 123,
"type": "gmail",
"account_identifier": "[email protected]",
"status": "connected",
"email_sending_per_day": 50,
"email_sending_per_hour": 20,
"email_sending_min_delay_seconds": 600,
"timezone": "America/New_York",
"authorized_gmail": true,
"token_expiry_date": "2024-12-31T23:59:59Z",
"email_sending_default": true,
"refresh_token_exists": true
}
],
"default_integration": {
"id": 123,
"type": "gmail",
"account_identifier": "[email protected]",
"status": "connected",
"email_sending_per_day": 50,
"email_sending_per_hour": 20,
"email_sending_min_delay_seconds": 600,
"timezone": "America/New_York",
"authorized_gmail": true,
"token_expiry_date": "2024-12-31T23:59:59Z",
"email_sending_default": true,
"refresh_token_exists": true
},
"can_sync_google": true
},
"metadata": {
"request_id": "<string>"
}
}Returns all Gmail integrations for the authenticated user with their settings and status.
curl --request GET \
--url https://api.village.do/v2/integrations \
--header 'Authorization: Bearer <token>'{
"data": {
"integrations": [
{
"id": 123,
"type": "gmail",
"account_identifier": "[email protected]",
"status": "connected",
"email_sending_per_day": 50,
"email_sending_per_hour": 20,
"email_sending_min_delay_seconds": 600,
"timezone": "America/New_York",
"authorized_gmail": true,
"token_expiry_date": "2024-12-31T23:59:59Z",
"email_sending_default": true,
"refresh_token_exists": true
}
],
"default_integration": {
"id": 123,
"type": "gmail",
"account_identifier": "[email protected]",
"status": "connected",
"email_sending_per_day": 50,
"email_sending_per_hour": 20,
"email_sending_min_delay_seconds": 600,
"timezone": "America/New_York",
"authorized_gmail": true,
"token_expiry_date": "2024-12-31T23:59:59Z",
"email_sending_default": true,
"refresh_token_exists": true
},
"can_sync_google": true
},
"metadata": {
"request_id": "<string>"
}
}JWT token obtained from authentication endpoint
Integrations retrieved successfully
Gmail integrations list response
Show child attributes
List of Gmail integrations
Show child attributes
Integration ID
123
Integration type
"gmail"
Account identifier (email address)
Integration status
connected, disconnected, failed "connected"
Daily email sending limit
50
Hourly email sending limit
20
Minimum delay between emails in seconds
600
Timezone for scheduling
"America/New_York"
Whether Gmail is authorized
true
Token expiry date
"2024-12-31T23:59:59Z"
Whether this is the default integration for email sending
true
Whether refresh token is available
true
Default integration (if any)
Show child attributes
Integration ID
123
Integration type
"gmail"
Account identifier (email address)
Integration status
connected, disconnected, failed "connected"
Daily email sending limit
50
Hourly email sending limit
20
Minimum delay between emails in seconds
600
Timezone for scheduling
"America/New_York"
Whether Gmail is authorized
true
Token expiry date
"2024-12-31T23:59:59Z"
Whether this is the default integration for email sending
true
Whether refresh token is available
true
Whether user can sync Google based on plan
true
Was this page helpful?