> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://api.alsona.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://api.alsona.com/_mcp/server.

# Get profile opportunity score

GET https://alsona.com/rest/accounts/{account_id}/campaigns/{campaign_id}/profiles/{profile_id}/opportunity-score

Get the opportunity score breakdown for a profile in a campaign: its ICP score, buyer intent score, and the reasons behind each.

The campaign combines the two scores using its `icp_weight` and `buyer_intent_weight` settings.

Reference: https://api.alsona.com/api-reference/campaigns/profiles/get-profile-opportunity-score

## Authentication

- `X-API-KEY` header (required) — API Key authentication via header

## Request

### Path parameters

- `account_id` (string, required)
- `campaign_id` (string, required)
- `profile_id` (string, required)

## Response

### 200

Successful response

- `success` (boolean, required)
- `score` (RestAccountsAccountIdCampaignsCampaignIdProfilesProfileIdOpportunityScoreGetResponsesContentApplicationJsonSchemaScore, required)

## Types

### RestAccountsAccountIdCampaignsCampaignIdProfilesProfileIdOpportunityScoreGetResponsesContentApplicationJsonSchemaScore

- `campaign_id` (string, required)
- `profile_id` (string, required)
- `icp_score` (integer, required) — How well the profile matches the campaign ICP (0-100).
- `buyer_intent_score` (integer, required) — Strength of the buying signals found for the profile's company (0-100).
- `updated_at` (integer, required)
- `icp_score_reasons` (list of string, optional) — Why the profile received its ICP score.
- `buyer_intent_score_reasons` (list of string, optional) — The signals behind the buyer intent score.
- `signal_search_qualified` (boolean, optional) — Whether the profile qualified for signal search.
- `signal_keys` (list of string, optional) — Signal sources that produced signals for this profile (see List available signals).

## Examples

**Response**

```json
{
  "success": true,
  "score": {
    "campaign_id": "CAMPXXXXXXXXXXXXXXXXXXXX",
    "profile_id": "ACoAAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX",
    "icp_score": 100,
    "buyer_intent_score": 89,
    "updated_at": 1790781423186,
    "icp_score_reasons": [
      "company country matches ICP (US)",
      "industry matches ICP (Software Development)",
      "company size matches ICP (201-500)",
      "job title matches ICP (Co-Founder)"
    ],
    "buyer_intent_score_reasons": [
      "Job posting: Software Engineer, Agent - Insurance (California) - Focused AI agent development program for financial services / insurance: production deployment of claims/quote agents, agent frameworks, and voice model integration with attention to security and compliance. [ai, data, security]",
      "Job posting: Marketing Operations & Analytics Lead (San Francisco, CA) - Marketing operations & analytics program to build measurement, attribution, ICP/account scoring, and martech/data stack integration (Marketo/HubSpot, Salesforce, modern data warehouse) to tie marketing to ARR and pipeline. [data, revops]",
      "Acme Summit 2026 on 2026-10-06 is a relevant company-hosted in-person event (ai, crm, sales)"
    ],
    "signal_search_qualified": true,
    "signal_keys": [
      "signal_in_person_event_activity",
      "signal_interpreted_job_postings"
    ]
  }
}
```

**SDK Code**

```python Response
import requests

url = "https://alsona.com/rest/accounts/account_id/campaigns/campaign_id/profiles/profile_id/opportunity-score"

headers = {"X-API-KEY": "<apiKey>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript Response
const url = 'https://alsona.com/rest/accounts/account_id/campaigns/campaign_id/profiles/profile_id/opportunity-score';
const options = {method: 'GET', headers: {'X-API-KEY': '<apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Response
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://alsona.com/rest/accounts/account_id/campaigns/campaign_id/profiles/profile_id/opportunity-score"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("X-API-KEY", "<apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Response
require 'uri'
require 'net/http'

url = URI("https://alsona.com/rest/accounts/account_id/campaigns/campaign_id/profiles/profile_id/opportunity-score")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["X-API-KEY"] = '<apiKey>'

response = http.request(request)
puts response.read_body
```

```java Response
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://alsona.com/rest/accounts/account_id/campaigns/campaign_id/profiles/profile_id/opportunity-score")
  .header("X-API-KEY", "<apiKey>")
  .asString();
```

```php Response
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://alsona.com/rest/accounts/account_id/campaigns/campaign_id/profiles/profile_id/opportunity-score', [
  'headers' => [
    'X-API-KEY' => '<apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp Response
using RestSharp;

var client = new RestClient("https://alsona.com/rest/accounts/account_id/campaigns/campaign_id/profiles/profile_id/opportunity-score");
var request = new RestRequest(Method.GET);
request.AddHeader("X-API-KEY", "<apiKey>");
IRestResponse response = client.Execute(request);
```

```swift Response
import Foundation

let headers = ["X-API-KEY": "<apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://alsona.com/rest/accounts/account_id/campaigns/campaign_id/profiles/profile_id/opportunity-score")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```