Create a persona
Add a persona to the workspace.
Adds a persona to your workspace, next to the ones it already has. It never replaces an existing persona. A workspace can have only one persona unless several are enabled for it; without that, creating a second persona is refused. Contact Sillage to have several personas enabled. Returns the saved persona.
There is no idempotency key: sending the same request twice creates two personas in a workspace that can have several. Before you retry, check the state with GET /v3/personas.
Route
Access modes
Use a workspace API key. The workspace is inferred from the key.
Authorization: Bearer sk_live_...Body parameters
| Parameter | Type | Description |
|---|---|---|
| name | string | Optional. Defaults to "<your domain> persona" (or your workspace name if it has no domain), numbered "… 2", "… 3" when that name is taken. |
| job_titles | array of string | Required. Target job titles. At least one value. Up to 1000 items of 1100 characters each. |
| excluded_job_titles | array of string | People whose LinkedIn headline contains one of these words won't become leads. Up to 1000 items of 1100 characters each. |
| locations | array of string | Required. Target locations. At least one value. Each value is a country (English name or ISO code), a continent or region, or Worldwide alone: see Recognized locations. Any other value is refused with 422. Up to 1000 items of 1100 characters each. |
| headcounts | array of string | Target headcount ranges: 1-10, 11-50, 51-200, 201-500, 501-1,000, 1,001-5,000, 5,001-10,000 or 10,001+. |
| industries | array of string | Target industries. Up to 1000 items of 1100 characters each. |
| seniorities | array of string | The seniority levels this persona targets: owner, founder, c_suite, partner, vp, head, director, manager, senior, entry or intern. |
| exclusion_criteria | array of string | Sentences or keywords describing who to leave out. Up to 50 items of 500 characters each. Send [] to clear it. |
| tag | string | A short label, up to 255 characters, to recognise this persona in your own systems. Never used for targeting. Two personas of the workspace cannot share a tag: reusing one answers 409. |
Recognized locations
Each value of locations is one of these. Matching ignores upper and lower case, and the persona is saved with the country or area name written as in this page.
- A country: its English name, such as
France, or its ISO code, such asFR. - A continent or a region: a set of countries, saved under its name. The table below lists them all.
- Worldwide:
Worldwidemeans no location filter. Send it alone, not with another value.
| Continent | Countries | Regions inside it |
|---|---|---|
Africa | 55 | North Africa |
Asia | 36 | East Asia, Southeast Asia, South Asia |
Europe | 45 | Western Europe, Eastern Europe, European Union, Nordics, DACH, Benelux, UK & Ireland |
Middle East | 15 | Gulf countries (GCC) |
North America | 25 | US & Canada, Central America & Caribbean |
Oceania | 16 | Australia & New Zealand |
South America | 13 |
A value that is none of these, such as a city or a misspelling, is refused with 422 and the code invalid_location. errors names each value at fault by its position, for example locations[1], and nothing is saved. Pick the country instead of a city.
Example request
curl -X POST "https://api.getsillage.com/api/v3/personas" \
-H "Authorization: Bearer $SILLAGE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"job_titles": [
"VP Sales",
"Head of Sales"
],
"locations": [
"United States"
],
"seniorities": [
"vp",
"head"
],
"tag": "smb-us"
}'Success response
Status: 201 Created
{
"data": {
"id": 7,
"name": "Sales EMEA persona",
"job_titles": ["VP Sales", "Head of Sales"],
"excluded_job_titles": ["Intern"],
"locations": ["United States", "France"],
"headcounts": ["51-200", "201-500"],
"industries": ["Software"],
"seniorities": ["vp", "head"],
"exclusion_criteria": ["Agencies"],
"tag": "smb-us"
}
}Response fields
| Field | Type | Description |
|---|---|---|
| data.id | integer | ID of the persona. |
| data.name | string | The persona's name, as shown in the app. |
| data.job_titles | array of string | Target job titles. [] when there are none. |
| data.excluded_job_titles | array of string | People whose LinkedIn headline contains one of these words won't become leads. |
| data.locations | array of string | Target locations: countries or regions. [] when there are none. |
| data.headcounts | array of string | Target headcount ranges. [] when there are none. |
| data.industries | array of string | Target industries. [] when there are none. |
| data.seniorities | array of string | The seniority levels this persona targets. |
| data.exclusion_criteria | array of string | Sentences or keywords describing who to leave out. |
| data.tag | string or null | The short label you set to recognise this persona. Never used for targeting, and unique across the personas of the workspace. |
| meta.warnings | array of string | Advisory notes about the persona you just saved. The whole meta is left out when there is nothing to report. |
Errors
| Status | Meaning |
|---|---|
| 401 | The API key is missing or invalid. |
| 402 | Your workspace has no active plan (paywall_required). Start your trial or choose a plan at https://www.getsillage.com/paywall, then retry. |
| 403 | Your workspace can have only one persona. Contact Sillage to enable business units (multi-persona setup) and add more. Nothing is created. |
| 409 | Another persona of the workspace already uses this tag. |
| 422 | job_titles or locations is missing or empty, a value is not allowed (for example a locations, headcounts or seniorities value), or a field is not known. A locations value that is not on the list has the code invalid_location. |
| 429 | Rate limit exceeded. |
| 500 | An unexpected server error occurred. |
Error responses use RFC 9457 problem documents with Content-Type: application/problem+json. type is always about:blank; code tells one problem from another, detail says what went wrong this time, and errors names the field at fault.