Skip to main content
POST
/
v2
/
lists
Create a List
curl --request POST \
  --url https://api.affinity.co/v2/lists \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "2026 Prospects",
  "type": "company",
  "isPublic": false
}
'
{
  "id": 42,
  "name": "2026 Prospects",
  "type": "company",
  "isPublic": false,
  "ownerId": 1,
  "creatorId": 1
}

Documentation Index

Fetch the complete documentation index at: https://developer.affinity.co/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Request body for creating a new List

name
string
required

The name of the List

Required string length: 1 - 255
Example:

"My Companies"

type
enum<string>
required

The entity type for the List

Available options:
company,
opportunity,
person
Example:

"company"

isPublic
boolean
default:false

Whether the List is public. Public Lists are visible to all users in the organization. Creating a public List requires the "Share accessible Lists globally" permission.

Example:

false

Response

Created

ListWithType model

id
integer<int64>
required

The unique identifier for the list

Required range: 1 <= x <= 9007199254740991
Example:

1

name
string
required

The name of the list

Example:

"All companies"

creatorId
integer<int64>
required

The ID of the user that created this list

Required range: 1 <= x <= 9007199254740991
Example:

1

ownerId
integer<int64>
required

The ID of the user that owns this list

Required range: 1 <= x <= 9007199254740991
Example:

1

isPublic
boolean
required

Whether or not the list is public

Example:

false

type
enum<string>
required

The entity type for this list

Available options:
company,
opportunity,
person
Example:

"company"