## Get contact by ID **get** `/v2/contacts/{id}` Retrieves a single contact by their Featurebase ID. Returns both customers and leads. ### Path Parameters - `id` - The Featurebase contact ID (24-character ObjectId) ### Response Format Returns a single contact object with: - `object` - Always "contact" - `id` - Unique contact identifier - `userId` - External user ID from SSO (if set) - `email` - Contact email address - `name` - Contact display name - `profilePicture` - Profile picture URL - `type` - Contact type ("customer" or "lead") - `companies` - Array of companies the contact belongs to - `customFields` - Custom field values - `postsCreated` - Number of posts created - `commentsCreated` - Number of comments created - `lastActivity` - Last activity timestamp ### Example ```json { "object": "contact", "id": "676f0f6765bdaa7d7d760f88", "email": "john@example.com", "name": "John Doe", "type": "customer", ... } ``` ### Version Availability This endpoint is only available in API version 2026-01-01.nova and newer. ### Path Parameters - `id: string` Featurebase contact ID ### Header Parameters - `"Featurebase-Version": optional "2026-01-01.nova" or "2025-12-12.clover"` - `"2026-01-01.nova"` - `"2025-12-12.clover"` ### Example ```http curl https://do.featurebase.app/v2/contacts/$ID \ -H "Authorization: Bearer $FEATUREBASE_API_KEY" ``` #### Response ```json { "id": "676f0f6765bdaa7d7d760f88", "name": "John Steezy", "object": "contact", "type": "customer", "commentsCreated": 0, "companies": [ { "id": "507f1f77bcf86cd799439011", "companyId": "comp_12345", "companySize": 250, "createdAt": "2025-01-01T12:00:00.000Z", "industry": "Technology", "lastActivity": "2025-01-15T00:00:00.000Z", "linkedUsers": 15, "monthlySpend": 5000, "name": "Acme Inc", "object": "company", "plan": "enterprise", "updatedAt": "2025-01-10T15:30:00.000Z", "website": "https://acme.com", "customFields": { "location": "bar", "priority": "bar" } } ], "customFields": { "foo": "bar" }, "description": "", "email": "john@example.com", "lastActivity": "2025-01-03T21:42:30.181Z", "locale": "en", "manuallyOptedOutFromChangelog": false, "organizationId": "5febde12dc56d60012d47db6", "postsCreated": 0, "profilePicture": "https://fb-usercontent.fra1.cdn.digitaloceanspaces.com/anon_23.png", "roles": [ "string" ], "subscribedToChangelog": true, "userId": "676f0f673dbb299c8a4f3057", "verified": true } ```