Recruiting Insight
The four capacitiesHow it worksFor brokersAPI
Sign inGet started

Getting started

  • Introduction
  • Quickstart
  • Authentication
  • Pagination
  • Errors
Account
  • Retrieve your account
Prospects
  • Create a prospect
  • List prospects
  • Retrieve a prospect
  • Update a prospect
  • Delete a prospect
CCI results
  • List results
  • Retrieve a result
  • Invalidate a result
Role profiles
  • Create a profile
  • List profiles
  • Retrieve a profile
  • Update a profile
  • Delete a profile
Webhooks
  • Create a webhook
  • List webhooks
  • Retrieve a webhook
  • Update a webhook
  • Delete a webhook
  • Send a test event
  • Event payloads
  • Verifying signatures

Core Capacities Index™ API

The CCI API lets you add prospects, send them the Core Capacities Index™ (CCI) assessment, and read their results in your own tools. It's a REST API that takes and returns JSON.

Base URL

https://corecapacitiesindex.com/api/v1

Format

Content-Type: application/json

Every object has an object field naming its type. Keys are snake_case and timestamps are ISO 8601 strings in UTC. Send request bodies as JSON. A successful request returns a 2xx status with the object; a failed one returns an error.

Quickstart

  1. Create an API key in your dashboard.
  2. Register a webhook so results come to you.
  3. Create a prospect and send them their assessment link.
  4. Read the result when they finish.
# 1. Get notified when anyone finishes the CCI
curl -X POST 'https://corecapacitiesindex.com/api/v1/webhooks' \
  -H 'Authorization: Bearer cci_123' \
  -H 'Content-Type: application/json' \
  -d '{"endpoint": "https://example.com/webhooks/cci"}'
# 2. Add a prospect. Send them the assessment_url in the response.
curl -X POST 'https://corecapacitiesindex.com/api/v1/prospects' \
  -H 'Authorization: Bearer cci_123' \
  -H 'Content-Type: application/json' \
  -d '{"email": "jordan.rivera@example.com", "first_name": "Jordan", "last_name": "Rivera"}'
# 3. When the cci.completed webhook arrives (or the prospect's cci.status is
#    "completed"), read the result and how it matches your role profiles
curl 'https://corecapacitiesindex.com/api/v1/results/result_1729900500000_a8f2c1' \
  -H 'Authorization: Bearer cci_123'

Authentication

Send your API key as a bearer token on every request. Keys start with cci_ and belong to one account, so you never pass an account ID. Keep keys on your server; anyone with a key can read your prospects' results.

Authorization: Bearer cci_123

Pagination

List endpoints return newest items first, wrapped in a list object. When has_more is true, pass the last item's ID as after to get the next page.

ParameterTypeDescription
limitnumberItems per page, 1–100. Defaults to 20.
afterstringReturn items after this ID, for the next page.
beforestringReturn items before this ID, for the previous page.
{
  "object": "list",
  "has_more": true,
  "data": [ ... ]
}

Errors

Errors use standard HTTP status codes and always have the same shape.

{
  "statusCode": 422,
  "name": "validation_error",
  "message": "`email` must be a valid email address."
}
401missing_api_keyNo API key in the Authorization header.
403invalid_api_keyThe key is wrong or has been deleted.
404not_foundThe object doesn't exist in your account.
409conflictThe change conflicts with another object, such as a duplicate email.
422validation_errorA parameter is missing or invalid. The message says which.
500internal_server_errorSomething went wrong on our side. Retry the request.

Account

The account an API key belongs to. Every key is scoped to a single account.

Retrieve your account

GET/api/v1/account

Returns your account, including the public CCI link candidates use to take the assessment.

curl 'https://corecapacitiesindex.com/api/v1/account' \
  -H 'Authorization: Bearer cci_123'
Response
{
  "object": "account",
  "id": "acc_1729800000000_b2c4d6",
  "name": "Acme Corp",
  "website": "https://acmecorp.com/",
  "cci_enabled": true,
  "assessment_url": "https://corecapacitiesindex.com/cci/acmecorp-X7Q",
  "created_at": "2026-10-24T07:20:00.000Z"
}

Prospects

A prospect is a person you want to assess. Each prospect gets an assessment_url, your CCI link prefilled with their details, and a cci status that changes to completed when they finish.

Create a prospect

POST/api/v1/prospects

Creates a prospect and returns their prefilled assessment link. If a prospect with the same email exists, it's updated and returned instead, so this is safe to call more than once.

ParameterTypeDescription
emailstringRequired. The prospect's email address.
first_namestringFirst name.
last_namestringLast name.
phonestringPhone number.
occupationstringCurrent job title.
postal_codestringPostal or ZIP code.
curl -X POST 'https://corecapacitiesindex.com/api/v1/prospects' \
  -H 'Authorization: Bearer cci_123' \
  -H 'Content-Type: application/json' \
  -d '{
    "email": "jordan.rivera@example.com",
    "first_name": "Jordan",
    "last_name": "Rivera"
  }'
Response
{
  "object": "prospect",
  "id": "contact_1729900000000_k3j9xq",
  "email": "jordan.rivera@example.com",
  "first_name": "Jordan",
  "last_name": "Rivera",
  "phone": null,
  "occupation": "Account executive",
  "postal_code": null,
  "assessment_url": "https://corecapacitiesindex.com/cci/acmecorp-X7Q?firstName=Jordan&lastName=Rivera&email=jordan.rivera%40example.com",
  "cci": {
    "status": "completed",
    "result_id": "result_1729900500000_a8f2c1",
    "completed_at": "2026-10-26T15:08:20.000Z"
  },
  "created_at": "2026-10-26T14:53:20.000Z",
  "updated_at": null
}

List prospects

GET/api/v1/prospects

Lists prospects, newest first.

ParameterTypeDescription
limitnumberItems per page, 1–100. Defaults to 20.
afterstringReturn items after this ID, for the next page.
beforestringReturn items before this ID, for the previous page.
emailstringOnly the prospect with this email.
curl 'https://corecapacitiesindex.com/api/v1/prospects?limit=50' \
  -H 'Authorization: Bearer cci_123'
Response
{
  "object": "list",
  "has_more": false,
  "data": [ {
      "object": "prospect",
      "id": "contact_1729900000000_k3j9xq",
      "email": "jordan.rivera@example.com",
      "first_name": "Jordan",
      "last_name": "Rivera",
      "phone": null,
      "occupation": "Account executive",
      "postal_code": null,
      "assessment_url": "https://corecapacitiesindex.com/cci/acmecorp-X7Q?firstName=Jordan&lastName=Rivera&email=jordan.rivera%40example.com",
      "cci": {
        "status": "completed",
        "result_id": "result_1729900500000_a8f2c1",
        "completed_at": "2026-10-26T15:08:20.000Z"
      },
      "created_at": "2026-10-26T14:53:20.000Z",
      "updated_at": null
    } ]
}

Retrieve a prospect

GET/api/v1/prospects/:id_or_email

Looks a prospect up by ID or by email.

curl 'https://corecapacitiesindex.com/api/v1/prospects/jordan.rivera@example.com' \
  -H 'Authorization: Bearer cci_123'
Response
{
  "object": "prospect",
  "id": "contact_1729900000000_k3j9xq",
  "email": "jordan.rivera@example.com",
  "first_name": "Jordan",
  "last_name": "Rivera",
  "phone": null,
  "occupation": "Account executive",
  "postal_code": null,
  "assessment_url": "https://corecapacitiesindex.com/cci/acmecorp-X7Q?firstName=Jordan&lastName=Rivera&email=jordan.rivera%40example.com",
  "cci": {
    "status": "completed",
    "result_id": "result_1729900500000_a8f2c1",
    "completed_at": "2026-10-26T15:08:20.000Z"
  },
  "created_at": "2026-10-26T14:53:20.000Z",
  "updated_at": null
}

Update a prospect

PATCH/api/v1/prospects/:id_or_email

Updates any of the fields accepted when creating a prospect.

curl -X PATCH 'https://corecapacitiesindex.com/api/v1/prospects/contact_1729900000000_k3j9xq' \
  -H 'Authorization: Bearer cci_123' \
  -H 'Content-Type: application/json' \
  -d '{
    "occupation": "Senior account executive"
  }'
Response
{
  "object": "prospect",
  "id": "contact_1729900000000_k3j9xq",
  "email": "jordan.rivera@example.com",
  "first_name": "Jordan",
  "last_name": "Rivera",
  "phone": null,
  "occupation": "Account executive",
  "postal_code": null,
  "assessment_url": "https://corecapacitiesindex.com/cci/acmecorp-X7Q?firstName=Jordan&lastName=Rivera&email=jordan.rivera%40example.com",
  "cci": {
    "status": "completed",
    "result_id": "result_1729900500000_a8f2c1",
    "completed_at": "2026-10-26T15:08:20.000Z"
  },
  "created_at": "2026-10-26T14:53:20.000Z",
  "updated_at": null
}

Delete a prospect

DELETE/api/v1/prospects/:id_or_email

Permanently deletes the prospect and all of their results.

curl -X DELETE 'https://corecapacitiesindex.com/api/v1/prospects/contact_1729900000000_k3j9xq' \
  -H 'Authorization: Bearer cci_123'
Response
{
  "object": "prospect",
  "id": "contact_1729900000000_k3j9xq",
  "deleted": true
}

CCI results

A result is created each time a prospect completes the CCI. It holds their four capacity scores, six personality type scores, and a priority against each of your role profiles: 1 means every score is within the profile's ranges, 2 means all capacities or all personality types are, and 3 is anything else.

List results

GET/api/v1/results

Lists CCI results, newest first. Filter by prospect, or by how well results match a role profile. A listed result whose report_sections haven't been generated yet shows null there (and in report_markdown, if that hasn't been generated either) and is generated in the background; retrieve the result to wait for it.

ParameterTypeDescription
limitnumberItems per page, 1–100. Defaults to 20.
afterstringReturn items after this ID, for the next page.
beforestringReturn items before this ID, for the previous page.
prospect_idstringOnly results for this prospect (ID or email).
profile_idstringCompare against this role profile.
priority1 | 2 | 3With profile_id: only results at this priority or better.
statusstringvalid (default), invalidated or all.
curl 'https://corecapacitiesindex.com/api/v1/results?profile_id=profile_1729800000000_x1y2z3&priority=1' \
  -H 'Authorization: Bearer cci_123'
Response
{
  "object": "list",
  "has_more": false,
  "data": [ {
      "object": "cci_result",
      "id": "result_1729900500000_a8f2c1",
      "prospect_id": "contact_1729900000000_k3j9xq",
      "prospect": {
        "id": "contact_1729900000000_k3j9xq",
        "email": "jordan.rivera@example.com",
        "first_name": "Jordan",
        "last_name": "Rivera"
      },
      "status": "valid",
      "capacities": { "builder": 24, "merchant": 21, "innovator": 15, "banker": 12 },
      "personality_types": {
        "intuitive": 45, "independent": 39, "practical": 36,
        "creative": 33, "community": 30, "cognitive": 33
      },
      "top_capacities": ["builder", "merchant"],
      "profile_matches": [
        { "profile_id": "profile_1729800000000_x1y2z3", "profile_name": "Account executive", "priority": 1 },
        { "profile_id": "profile_1729800000001_q7w8e9", "profile_name": "Operations manager", "priority": 3 }
      ],
      "snapshot": {
        "name": "Builder/Merchant",
        "summary": "Drives toward results and rallies people around a vision...",
        "interview_questions": ["Tell me about a deal you pushed over the line..."]
      },
      "words": ["action", "vision", "results"],
      "custom_responses": {
        "q_1": { "label": "Years of sales experience", "response": "5" }
      },
      "result_url": "https://corecapacitiesindex.com/results/Xk29dPq1",
      "prospect_result_url": "https://corecapacitiesindex.com/my-results/a91LmZ0p",
      "report_markdown": "# Core Capacities Index™ Results: Jordan Rivera\n\nCCI™ assessment results for Jordan Rivera...",
      "report_sections": [
        {
          "profile_id": "profile_1729800000000_x1y2z3",
          "profile_name": "Account executive",
          "priority": 1,
          "assessment_analysis": "## Assessment Analysis\n\nAnalysis based on these results and the hiring profile.\n\n**Profile:** Account executive...",
          "snapshot": "## Snapshot of a Builder / Merchant\n\nA summary of this capacity profile\n\n...",
          "production_strengths": "## Likely Production Strengths\n\n- ...",
          "support_needed": "## Support They'll Need\n\n- ...",
          "retention_watchouts": "## Retention Watchouts\n\n- ...",
          "support_plan": "## How to Support This Person\n\nPractical ways to manage and coach to this person's natural drivers.\n\n**Motivate with:** ...",
          "interview_questions": "## Interview Questions\n\nThe questions most likely to draw revealing answers, chosen for these results and the selected profile\n\n1. ..."
        }
      ],
      "created_at": "2026-10-26T15:08:20.000Z",
      "updated_at": null,
      "invalidated_at": null
    } ]
}

Retrieve a result

GET/api/v1/results/:id

Returns one result with scores, profile matches, the snapshot summary and interview questions, and links to the full report. report_markdown is the whole broker report as markdown: contact details, scores, the snapshot and, for each role profile, the profile comparison, analysis, outlook, support plan and interview questions with strong answers and red flags. Pass it to your own model as a prompt. report_sections has the same report one section at a time, once per role profile (best fit first; a single entry with null profile_id, profile_name and priority when you have no role profiles): assessment_analysis, snapshot, production_strengths, support_needed, retention_watchouts, support_plan and interview_questions, each exactly the markdown the section's copy button copies on the results page, or null where that section has nothing to show (assessment_analysis is null without a role profile). Use it to pull one section instead of the whole report. interview_questions includes the interview scores and notes once an interview has been scored. If the report hasn't been generated yet (or the result or its role profiles have changed since), this request waits up to 90 seconds for it; if it's still not ready, both are null and you can try again shortly.

curl 'https://corecapacitiesindex.com/api/v1/results/result_1729900500000_a8f2c1' \
  -H 'Authorization: Bearer cci_123'
Response
{
  "object": "cci_result",
  "id": "result_1729900500000_a8f2c1",
  "prospect_id": "contact_1729900000000_k3j9xq",
  "prospect": {
    "id": "contact_1729900000000_k3j9xq",
    "email": "jordan.rivera@example.com",
    "first_name": "Jordan",
    "last_name": "Rivera"
  },
  "status": "valid",
  "capacities": { "builder": 24, "merchant": 21, "innovator": 15, "banker": 12 },
  "personality_types": {
    "intuitive": 45, "independent": 39, "practical": 36,
    "creative": 33, "community": 30, "cognitive": 33
  },
  "top_capacities": ["builder", "merchant"],
  "profile_matches": [
    { "profile_id": "profile_1729800000000_x1y2z3", "profile_name": "Account executive", "priority": 1 },
    { "profile_id": "profile_1729800000001_q7w8e9", "profile_name": "Operations manager", "priority": 3 }
  ],
  "snapshot": {
    "name": "Builder/Merchant",
    "summary": "Drives toward results and rallies people around a vision...",
    "interview_questions": ["Tell me about a deal you pushed over the line..."]
  },
  "words": ["action", "vision", "results"],
  "custom_responses": {
    "q_1": { "label": "Years of sales experience", "response": "5" }
  },
  "result_url": "https://corecapacitiesindex.com/results/Xk29dPq1",
  "prospect_result_url": "https://corecapacitiesindex.com/my-results/a91LmZ0p",
  "report_markdown": "# Core Capacities Index™ Results: Jordan Rivera\n\nCCI™ assessment results for Jordan Rivera...",
  "report_sections": [
    {
      "profile_id": "profile_1729800000000_x1y2z3",
      "profile_name": "Account executive",
      "priority": 1,
      "assessment_analysis": "## Assessment Analysis\n\nAnalysis based on these results and the hiring profile.\n\n**Profile:** Account executive...",
      "snapshot": "## Snapshot of a Builder / Merchant\n\nA summary of this capacity profile\n\n...",
      "production_strengths": "## Likely Production Strengths\n\n- ...",
      "support_needed": "## Support They'll Need\n\n- ...",
      "retention_watchouts": "## Retention Watchouts\n\n- ...",
      "support_plan": "## How to Support This Person\n\nPractical ways to manage and coach to this person's natural drivers.\n\n**Motivate with:** ...",
      "interview_questions": "## Interview Questions\n\nThe questions most likely to draw revealing answers, chosen for these results and the selected profile\n\n1. ..."
    }
  ],
  "created_at": "2026-10-26T15:08:20.000Z",
  "updated_at": null,
  "invalidated_at": null
}

Invalidate a result

POST/api/v1/results/:id/invalidate

Marks a result invalid so the prospect can take the CCI again. Their next completion reuses the same result ID.

curl -X POST 'https://corecapacitiesindex.com/api/v1/results/result_1729900500000_a8f2c1/invalidate' \
  -H 'Authorization: Bearer cci_123'
Response
{
  "object": "cci_result",
  "id": "result_1729900500000_a8f2c1",
  "status": "invalidated",
  "invalidated_at": "2026-10-26T16:00:00.000Z",
  ...
}

Role profiles

A role profile sets the score range you're looking for on each of the 10 CCI dimensions. Capacity ranges go up to 36 and personality type ranges up to 72. Every result is ranked against every profile.

Create a profile

POST/api/v1/profiles

Creates a role profile. Include a { min, max } range for all 10 dimensions.

ParameterTypeDescription
namestringRequired. For example, the job title.
descriptionstringOptional notes.
rangesobjectRequired. builder, merchant, innovator, banker, intuitive, independent, practical, creative, community and cognitive.
curl -X POST 'https://corecapacitiesindex.com/api/v1/profiles' \
  -H 'Authorization: Bearer cci_123' \
  -H 'Content-Type: application/json' \
  -d '{
    "name": "Account executive",
    "ranges": {
      "builder": { "min": 20, "max": 28 },
      "merchant": { "min": 18, "max": 26 },
      "innovator": { "min": 14, "max": 22 },
      "banker": { "min": 8, "max": 16 },
      "intuitive": { "min": 40, "max": 50 },
      "independent": { "min": 35, "max": 45 },
      "practical": { "min": 30, "max": 40 },
      "creative": { "min": 28, "max": 38 },
      "community": { "min": 25, "max": 35 },
      "cognitive": { "min": 28, "max": 38 }
    }
  }'
Response
{
  "object": "profile",
  "id": "profile_1729800000000_x1y2z3",
  "name": "Account executive",
  "description": "Quota-carrying sales role",
  "ranges": {
    "builder": { "min": 20, "max": 28 },
    "merchant": { "min": 18, "max": 26 },
    "innovator": { "min": 14, "max": 22 },
    "banker": { "min": 8, "max": 16 },
    "intuitive": { "min": 40, "max": 50 },
    "independent": { "min": 35, "max": 45 },
    "practical": { "min": 30, "max": 40 },
    "creative": { "min": 28, "max": 38 },
    "community": { "min": 25, "max": 35 },
    "cognitive": { "min": 28, "max": 38 }
  },
  "created_at": "2026-10-25T11:06:40.000Z",
  "updated_at": null
}

List profiles

GET/api/v1/profiles

Lists your role profiles, newest first.

ParameterTypeDescription
limitnumberItems per page, 1–100. Defaults to 20.
afterstringReturn items after this ID, for the next page.
beforestringReturn items before this ID, for the previous page.
curl 'https://corecapacitiesindex.com/api/v1/profiles' \
  -H 'Authorization: Bearer cci_123'
Response
{
  "object": "list",
  "has_more": false,
  "data": [ {
      "object": "profile",
      "id": "profile_1729800000000_x1y2z3",
      "name": "Account executive",
      "description": "Quota-carrying sales role",
      "ranges": {
        "builder": { "min": 20, "max": 28 },
        "merchant": { "min": 18, "max": 26 },
        "innovator": { "min": 14, "max": 22 },
        "banker": { "min": 8, "max": 16 },
        "intuitive": { "min": 40, "max": 50 },
        "independent": { "min": 35, "max": 45 },
        "practical": { "min": 30, "max": 40 },
        "creative": { "min": 28, "max": 38 },
        "community": { "min": 25, "max": 35 },
        "cognitive": { "min": 28, "max": 38 }
      },
      "created_at": "2026-10-25T11:06:40.000Z",
      "updated_at": null
    } ]
}

Retrieve a profile

GET/api/v1/profiles/:id

Returns one role profile.

curl 'https://corecapacitiesindex.com/api/v1/profiles/profile_1729800000000_x1y2z3' \
  -H 'Authorization: Bearer cci_123'
Response
{
  "object": "profile",
  "id": "profile_1729800000000_x1y2z3",
  "name": "Account executive",
  "description": "Quota-carrying sales role",
  "ranges": {
    "builder": { "min": 20, "max": 28 },
    "merchant": { "min": 18, "max": 26 },
    "innovator": { "min": 14, "max": 22 },
    "banker": { "min": 8, "max": 16 },
    "intuitive": { "min": 40, "max": 50 },
    "independent": { "min": 35, "max": 45 },
    "practical": { "min": 30, "max": 40 },
    "creative": { "min": 28, "max": 38 },
    "community": { "min": 25, "max": 35 },
    "cognitive": { "min": 28, "max": 38 }
  },
  "created_at": "2026-10-25T11:06:40.000Z",
  "updated_at": null
}

Update a profile

PATCH/api/v1/profiles/:id

Updates the name, description or any subset of ranges. Ranges you leave out keep their values.

curl -X PATCH 'https://corecapacitiesindex.com/api/v1/profiles/profile_1729800000000_x1y2z3' \
  -H 'Authorization: Bearer cci_123' \
  -H 'Content-Type: application/json' \
  -d '{
    "ranges": {
      "builder": { "min": 22, "max": 30 }
    }
  }'
Response
{
  "object": "profile",
  "id": "profile_1729800000000_x1y2z3",
  "name": "Account executive",
  "description": "Quota-carrying sales role",
  "ranges": {
    "builder": { "min": 20, "max": 28 },
    "merchant": { "min": 18, "max": 26 },
    "innovator": { "min": 14, "max": 22 },
    "banker": { "min": 8, "max": 16 },
    "intuitive": { "min": 40, "max": 50 },
    "independent": { "min": 35, "max": 45 },
    "practical": { "min": 30, "max": 40 },
    "creative": { "min": 28, "max": 38 },
    "community": { "min": 25, "max": 35 },
    "cognitive": { "min": 28, "max": 38 }
  },
  "created_at": "2026-10-25T11:06:40.000Z",
  "updated_at": null
}

Delete a profile

DELETE/api/v1/profiles/:id

Deletes a role profile. Results are no longer ranked against it.

curl -X DELETE 'https://corecapacitiesindex.com/api/v1/profiles/profile_1729800000000_x1y2z3' \
  -H 'Authorization: Bearer cci_123'
Response
{
  "object": "profile",
  "id": "profile_1729800000000_x1y2z3",
  "deleted": true
}

Webhooks

Webhooks send an HTTPS POST to your endpoint when something happens, so you don't have to poll. Use cci.completed to get each result the moment a prospect finishes.

Create a webhook

POST/api/v1/webhooks

Registers an endpoint. Save the signing_secret: you'll use it to verify deliveries.

ParameterTypeDescription
endpointstringRequired. An https:// URL.
eventsstring[]cci.completed and/or prospect.created. Defaults to ["cci.completed"].
curl -X POST 'https://corecapacitiesindex.com/api/v1/webhooks' \
  -H 'Authorization: Bearer cci_123' \
  -H 'Content-Type: application/json' \
  -d '{
    "endpoint": "https://example.com/webhooks/cci",
    "events": [
      "cci.completed"
    ]
  }'
Response
{
  "object": "webhook",
  "id": "wh_1729900000000_p0o9i8",
  "endpoint": "https://example.com/webhooks/cci",
  "events": ["cci.completed"],
  "status": "enabled",
  "signing_secret": "whsec_MfKQ9r8GKYqrTwjUPD8ILPZIo2LaLaSw",
  "created_at": "2026-10-26T14:53:20.000Z",
  "updated_at": null
}

List webhooks

GET/api/v1/webhooks

Lists your webhook endpoints.

ParameterTypeDescription
limitnumberItems per page, 1–100. Defaults to 20.
afterstringReturn items after this ID, for the next page.
beforestringReturn items before this ID, for the previous page.
curl 'https://corecapacitiesindex.com/api/v1/webhooks' \
  -H 'Authorization: Bearer cci_123'
Response
{
  "object": "list",
  "has_more": false,
  "data": [ {
      "object": "webhook",
      "id": "wh_1729900000000_p0o9i8",
      "endpoint": "https://example.com/webhooks/cci",
      "events": ["cci.completed"],
      "status": "enabled",
      "signing_secret": "whsec_MfKQ9r8GKYqrTwjUPD8ILPZIo2LaLaSw",
      "created_at": "2026-10-26T14:53:20.000Z",
      "updated_at": null
    } ]
}

Retrieve a webhook

GET/api/v1/webhooks/:id

Returns one webhook endpoint, including its signing secret.

curl 'https://corecapacitiesindex.com/api/v1/webhooks/wh_1729900000000_p0o9i8' \
  -H 'Authorization: Bearer cci_123'
Response
{
  "object": "webhook",
  "id": "wh_1729900000000_p0o9i8",
  "endpoint": "https://example.com/webhooks/cci",
  "events": ["cci.completed"],
  "status": "enabled",
  "signing_secret": "whsec_MfKQ9r8GKYqrTwjUPD8ILPZIo2LaLaSw",
  "created_at": "2026-10-26T14:53:20.000Z",
  "updated_at": null
}

Update a webhook

PATCH/api/v1/webhooks/:id

Changes the endpoint or events, or pauses deliveries with status: disabled.

ParameterTypeDescription
endpointstringA new https:// URL.
eventsstring[]The events to subscribe to.
statusstringenabled or disabled.
curl -X PATCH 'https://corecapacitiesindex.com/api/v1/webhooks/wh_1729900000000_p0o9i8' \
  -H 'Authorization: Bearer cci_123' \
  -H 'Content-Type: application/json' \
  -d '{
    "status": "disabled"
  }'
Response
{
  "object": "webhook",
  "id": "wh_1729900000000_p0o9i8",
  "endpoint": "https://example.com/webhooks/cci",
  "events": ["cci.completed"],
  "status": "disabled",
  "signing_secret": "whsec_MfKQ9r8GKYqrTwjUPD8ILPZIo2LaLaSw",
  "created_at": "2026-10-26T14:53:20.000Z",
  "updated_at": null
}

Delete a webhook

DELETE/api/v1/webhooks/:id

Deletes the endpoint. Deliveries stop immediately.

curl -X DELETE 'https://corecapacitiesindex.com/api/v1/webhooks/wh_1729900000000_p0o9i8' \
  -H 'Authorization: Bearer cci_123'
Response
{
  "object": "webhook",
  "id": "wh_1729900000000_p0o9i8",
  "deleted": true
}

Send a test event

POST/api/v1/webhooks/:id/test

Sends a sample cci.completed event to the endpoint so you can check your handler.

curl -X POST 'https://corecapacitiesindex.com/api/v1/webhooks/wh_1729900000000_p0o9i8/test' \
  -H 'Authorization: Bearer cci_123'
Response
{
  "object": "webhook_delivery",
  "id": "msg_5f1c0d9e2b7a4c3d8e6f1a2b",
  "webhook_id": "wh_1729900000000_p0o9i8",
  "status_code": 200,
  "success": true
}

Event payloads

Each delivery is a JSON body with the event type and a data object. For cci.completed, data is the full result, the same object Retrieve a result returns. For prospect.created, it's the prospect.

cci.completed is sent once the result's report_markdown and report_sections are ready, usually within a minute or two of the prospect finishing. If it takes longer, the event is sent without them (null) and you can get them later from Retrieve a result.

{
  "type": "cci.completed",
  "created_at": "2026-10-26T15:08:21.000Z",
  "data": {
    "object": "cci_result",
    "id": "result_1729900500000_a8f2c1",
    "prospect_id": "contact_1729900000000_k3j9xq",
    "prospect": {
      "id": "contact_1729900000000_k3j9xq",
      "email": "jordan.rivera@example.com",
      "first_name": "Jordan",
      "last_name": "Rivera"
    },
    "status": "valid",
    "capacities": { "builder": 24, "merchant": 21, "innovator": 15, "banker": 12 },
    "personality_types": {
      "intuitive": 45, "independent": 39, "practical": 36,
      "creative": 33, "community": 30, "cognitive": 33
    },
    "top_capacities": ["builder", "merchant"],
    "profile_matches": [
      { "profile_id": "profile_1729800000000_x1y2z3", "profile_name": "Account executive", "priority": 1 },
      { "profile_id": "profile_1729800000001_q7w8e9", "profile_name": "Operations manager", "priority": 3 }
    ],
    "snapshot": {
      "name": "Builder/Merchant",
      "summary": "Drives toward results and rallies people around a vision...",
      "interview_questions": ["Tell me about a deal you pushed over the line..."]
    },
    "words": ["action", "vision", "results"],
    "custom_responses": {
      "q_1": { "label": "Years of sales experience", "response": "5" }
    },
    "result_url": "https://corecapacitiesindex.com/results/Xk29dPq1",
    "prospect_result_url": "https://corecapacitiesindex.com/my-results/a91LmZ0p",
    "report_markdown": "# Core Capacities Index™ Results: Jordan Rivera\n\nCCI™ assessment results for Jordan Rivera...",
    "report_sections": [
      {
        "profile_id": "profile_1729800000000_x1y2z3",
        "profile_name": "Account executive",
        "priority": 1,
        "assessment_analysis": "## Assessment Analysis\n\nAnalysis based on these results and the hiring profile.\n\n**Profile:** Account executive...",
        "snapshot": "## Snapshot of a Builder / Merchant\n\nA summary of this capacity profile\n\n...",
        "production_strengths": "## Likely Production Strengths\n\n- ...",
        "support_needed": "## Support They'll Need\n\n- ...",
        "retention_watchouts": "## Retention Watchouts\n\n- ...",
        "support_plan": "## How to Support This Person\n\nPractical ways to manage and coach to this person's natural drivers.\n\n**Motivate with:** ...",
        "interview_questions": "## Interview Questions\n\nThe questions most likely to draw revealing answers, chosen for these results and the selected profile\n\n1. ..."
      }
    ],
    "created_at": "2026-10-26T15:08:20.000Z",
    "updated_at": null,
    "invalidated_at": null
  }
}

Respond with any 2xx status within 10 seconds. Deliveries that time out or get a 5xx or 429 response are retried twice. Each delivery has a unique webhook-id that stays the same across retries, so you can ignore duplicates.

Verifying signatures

Deliveries are signed with your endpoint's signing_secret using the Standard Webhooks scheme, so any Standard Webhooks library works too. Each request has three headers:

ParameterTypeDescription
webhook-idstringUnique delivery ID.
webhook-timestampstringUnix time in seconds when it was sent.
webhook-signaturestringv1, followed by a base64 HMAC-SHA256 of id.timestamp.body.
// Next.js route handler: app/api/webhooks/cci/route.ts
import crypto from "node:crypto"

const SECRET = process.env.CCI_WEBHOOK_SECRET! // whsec_...

function isValid(payload: string, headers: Headers) {
  const id = headers.get("webhook-id")
  const timestamp = headers.get("webhook-timestamp")
  const signatures = headers.get("webhook-signature") ?? ""

  // Reject deliveries more than 5 minutes old
  if (Math.abs(Date.now() / 1000 - Number(timestamp)) > 300) return false

  const key = Buffer.from(SECRET.replace(/^whsec_/, ""), "base64")
  const expected = crypto
    .createHmac("sha256", key)
    .update(`${id}.${timestamp}.${payload}`)
    .digest("base64")

  // The header can hold several space-separated signatures
  return signatures.split(" ").some((entry) => {
    const [version, signature] = entry.split(",")
    return (
      version === "v1" &&
      signature?.length === expected.length &&
      crypto.timingSafeEqual(Buffer.from(signature), Buffer.from(expected))
    )
  })
}

export async function POST(request: Request) {
  const payload = await request.text() // the raw body, before JSON.parse
  if (!isValid(payload, request.headers)) {
    return new Response("Invalid signature", { status: 400 })
  }

  const event = JSON.parse(payload)
  if (event.type === "cci.completed") {
    const { prospect, profile_matches } = event.data
    // Save the result to your ATS or CRM
  }
  return new Response("OK")
}
Core Capacities Index™•© 2026 Recruiting Insight
APIPrivacy policyTerms of serviceSign in