Get Started with C&F APIs
Follow these steps to integrate C&F insurance APIs into your application in minutes.
Follow these steps to integrate C&F insurance APIs into your application in minutes.
Create your C&F Developer Portal account to begin.
Verify your email address and create a secure password.
Our team will review and approve your access request.
Once approved, log in to access the developer portal and browse available APIs and their documentation.
Request access to the APIs you need for your integration.
Use our sandbox environment to test your API calls safely.
C&F APIs use OpenID Connect (OIDC) for secure authentication. Once you have API access, you'll authenticate using the client credentials flow.
Request an access token using your Client ID and Client Secret:
curl -X POST https://auth.apis.cfins.io/oauth2/token \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "grant_type=client_credentials" \
-d "client_id=YOUR_CLIENT_ID" \
-d "client_secret=YOUR_CLIENT_SECRET"Example Response:
{
"access_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...",
"token_type": "Bearer",
"expires_in": 3600
}Include the access token in the Authorization header:
curl -X GET https://api.cfins.io/v1/policies \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-H "Content-Type: application/json"Example Response:
{
"policy_id": "POL-12345",
"status": "active",
"effective_date": "2024-01-01"
}expires_in (typically 1 hour). Request a new token when needed using the same credentials.