Skip to content

Authentication

VectorCare implements the OAuth2 protocol for authenticating applications.

POST https://auth.vectorcare.com/v2.0/oauth2/token

Send a POST request with form-data body:

FieldValueDescription
client_idYour client IDGenerated in VectorCare Open API settings
client_secretYour client secretGenerated in VectorCare Open API settings
grant_typeclient_credentialsAlways use this value
{
"access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9...",
"token_type": "bearer",
"expires_in": 3600
}
FieldTypeDescription
access_tokenstringJWT token for API requests
token_typestringAlways bearer
expires_inintegerToken lifetime in seconds (typically 3600)
{
"error_description": "Client authentication failed.",
"error": "invalid_client"
}

Include the token in the Authorization header for all API requests:

Authorization: Bearer {access_token}

Tokens expire after expires_in seconds (typically 1 hour). Proactively refresh before expiration to avoid 401 Unauthorized errors.

  1. Log into VectorCare as an account admin
  2. Navigate to SettingsOpen API
  3. Click Generate Credentials
  4. Store your client_id and client_secret securely

See VectorCare Open API Setup for detailed instructions.