Skip to main content
POST
Save hand-picked companies to a company list

Authorizations

Authorization
string
header
required

Your API token (af_…) as the Basic-auth username, with an empty password.

Body

application/json

companies and exactly one destination (listId | listName).

companies
object[]
required

The companies to save, 1 to 100, each an object from companies of POST /companies/search sent back as it came; each needs a preferred_name or a domains entry.

Required array length: 1 - 100 elements
listId
string

Id of an existing company list to save into (exactly one of listId / listName).

listName
string

Name of the destination company list, created when none exists; an existing list with the same name (case-insensitive) is reused, a name shared by several lists answers 409 LIST_NAME_AMBIGUOUS, and system list names answer 422 LIST_NAME_RESERVED.

Required string length: 1 - 255

Response

Success

listId
string
required

The destination company list.

companyIds
string[]
required

The ids of the companies saved into the list.

notFound
object[]
required

The picks left out, each by its position in companies.