Skip to main content
POST
Validate Google Vertex access

Authorizations

Authorization
string
header
required

JWT obtained through Barndoor's authentication flow. Pass the token verbatim in Authorization: Bearer <token>. Use the Barndoor SDK's loginInteractive() helper to obtain a token in scripts and notebooks.

Body

application/json
project_id
string
required
Example:

"my-gcp-project"

location
string
required
Example:

"us-central1"

auth_type
string

Defaults to google_adc if omitted

Example:

"google_service_account"

model_api_family
enum<string>
default:vertex_gemini
Available options:
vertex_gemini,
anthropic_messages
target_service_account
string

Service account to impersonate (only for google_impersonation)

credentials
object

Service-account JSON fields (only for google_service_account)

model
string

Optional model id used to validate end-to-end model access

Example:

"gemini-1.5-pro"

Response

Validation result

ok
boolean
Example:

true