Quickstart Guide

Up and Running in Three Steps

Follow this guide to authenticate with cit-account, connect a CIT Bank account via OAuth 2.0, and retrieve your first API key review — in under five minutes.

1
Step 01

Generate Your API Credentials

Before making any requests, you need an API key from your cit-account dashboard. Navigate to Settings → API Keys and click Generate New Key. Copy both your API Key and Secret — the secret is shown only once.

1
2
3
4
5
"color:#64748B"># Verify your credentials are active
"color:#38BDF8">curl -X GET https://api.cit-account.io/v1/auth/validate 
  -H "Authorization: Bearer YOUR_API_KEY" 
  -H "X-API-Secret: YOUR_API_SECRET" 
  -H "Content-Type: application/json"
Response · 200 OK
{
  "valid": true,
  "key_id": "cit_key_a1b2c3d4",
  "permissions": ["keys:read", "keys:review", "accounts:connect"],
  "rate_limit": { "limit": 1000, "remaining": 999 }
}
2
Step 02

Connect a CIT Bank Account via OAuth

Use the OAuth 2.0 flow to link a CIT Bank account to your cit-account workspace. First, redirect your user to the authorization URL, then exchange the returned code for an access token.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
"color:#64748B"># Step 1: Build the authorization URL (redirect user to this)
"color:#64748B"># https://oauth.cit-account.io/authorize
"color:#64748B">#   ?client_id=YOUR_CLIENT_ID
"color:#64748B">#   &redirect_uri=https://yourapp.com/callback
"color:#64748B">#   &scope=accounts:read+keys:review
"color:#64748B">#   &response_type=code
"color:#64748B">#   &state=RANDOM_STATE_STRING

"color:#64748B"># Step 2: Exchange the authorization code for a token
"color:#38BDF8">curl -X POST https://api.cit-account.io/v1/oauth/token 
  -H "Authorization: Bearer YOUR_API_KEY" 
  -H "Content-Type: application/json" 
  -d '{
    "grant_type": "authorization_code",
    "code": "AUTH_CODE_FROM_REDIRECT",
    "redirect_uri": "https://yourapp.com/callback",
    "client_id": "YOUR_CLIENT_ID",
    "client_secret": "YOUR_CLIENT_SECRET"
  }'
Response · 200 OK
{
  "access_token": "oauth_tok_x9y8z7w6v5u4",
  "token_type": "Bearer",
  "expires_in": 3600,
  "refresh_token": "ref_tok_q1r2s3t4u5v6",
  "scope": "accounts:read keys:review",
  "account_id": "cit_acct_00112233"
}
3
Step 03

Make Your First GET /api/keys/review Call

With a valid access token, you can now fetch a full review of all API keys associated with the connected CIT Bank account. The response includes key metadata, usage stats, rotation status, and permission scopes.

1
2
3
4
5
6
7
8
"color:#38BDF8">curl -X GET https://api.cit-account.io/v1/api/keys/review 
  -H "Authorization: Bearer oauth_tok_x9y8z7w6v5u4" 
  -H "X-Account-ID: cit_acct_00112233" 
  -H "Content-Type: application/json" 
  -G 
  --data-urlencode "status=active" 
  --data-urlencode "limit=25" 
  --data-urlencode "page=1"
Response · 200 OK
{
  "total": 3,
  "page": 1,
  "limit": 25,
  "keys": [
    {
      "id": "cit_key_a1b2c3d4",
      "label": "Production API Key",
      "status": "active",
      "created_at": "2024-11-01T09:00:00Z",
      "last_used_at": "2025-01-14T16:42:11Z",
      "expires_at": "2025-07-01T00:00:00Z",
      "rotation_due_at": "2025-04-01T00:00:00Z",
      "permissions": ["keys:read", "keys:review", "accounts:connect"],
      "usage_30d": 4821,
      "rotation_status": "due_soon"
    },
    {
      "id": "cit_key_e5f6g7h8",
      "label": "Staging Environment",
      "status": "active",
      "created_at": "2024-12-15T14:00:00Z",
      "last_used_at": "2025-01-13T11:08:33Z",
      "rotation_status": "ok"
    }
  ]
}

Ready to explore the full API?

Browse all endpoints, authentication schemes, error codes, and SDK references in the full API reference documentation.

REST Reference

API Endpoints Reference

Complete reference for all public REST endpoints available in the cit-account API. Click any row to view full parameter details, response schemas, and usage examples.

Base URLhttps://api.cit-account.io/v1
TLS 1.3 required
GETkeys:read

/keys

List all API keys associated with your CIT Bank account. Returns paginated results with key metadata, status, and creation timestamps.

POSTkeys:write

/keys/rotate

Rotate an existing API key by generating a new secret. The previous key is immediately invalidated upon successful rotation. Requires the key ID in the request body.

GETkeys:audit

/keys/{id}/audit-log

Retrieve the full audit trail for a specific API key. Logs include rotation events, permission changes, usage anomalies, and manual revocations with actor and timestamp details.

DELETEkeys:delete

/keys/{id}

Permanently delete an API key and invalidate all active sessions associated with it. This action is irreversible. A confirmation prompt is required via the X-Confirm-Delete header.

Authentication required on all endpoints

All requests must include a valid Bearer token in the Authorization header. Tokens are generated and managed within your cit-account dashboard. See the Authentication Guide for token scopes and rotation best practices.

cit-account

Manage and review your CIT Bank API keys with confidence. Enterprise-grade security and developer tools, purpose-built for fintech teams.

75 State Street, Boston,
MA 02109, USA

© 2026 cit-account. All rights reserved.

SOC 2 Type IIPCI DSSGDPR Ready