Skip to main content
POST
Create a linkedin profile agent

Authorizations

Authorization
string
header
required

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

Body

application/json
fieldsToScrape
enum<string>[]
required

Which engagement to collect: "likes" (reactors), "comments" (commenters), or both. At least one is required.

Minimum array length: 1
Available options:
likes,
comments
listName
string
required

Name for BOTH the agent and the results list it creates. Must be unique across your agents: a name already in use is rejected with 409 LIST_NAME_TAKEN.

start
boolean
default:false

true creates AND activates the agent (spends credits); false (default) saves a draft to activate later.

profileUrl
string

One LinkedIn profile URL (https://www.linkedin.com/in/...). Provide exactly one of profileUrl or profileUrls.

profileUrls
string[]

Up to 50 unique LinkedIn profile URLs (https://www.linkedin.com/in/...). Provide exactly one of profileUrl or profileUrls.

Required array length: 1 - 50 elements
maxPosts
integer
default:5

How many of the profile's most recent posts to collect engagement from (1-100, default 5).

Required range: 1 <= x <= 100
includeReposts
boolean
default:false

Include the profile's reposts and quote posts. Off by default: engagement on a repost belongs to the original author's audience.

postedLimit
enum<string>
default:year

Only collect engagement from posts published within this window.

Available options:
24h,
week,
month,
3months,
year
enableRecurring
boolean
default:false

Keep the scrape running on a recurring schedule instead of a single one-shot run.

recurringExpiresAt
string

ISO 8601 date-time at which a recurring scrape stops; must be in the future. Omit to keep it running until you stop it.

enrichPhone
boolean
default:false

Also enrich every delivered contact with a phone number. Costs additional credits per contact enriched.

enrichEmail
boolean
default:false

Also enrich every delivered contact with a work email address. Costs additional credits per contact enriched.

maxCreditSpend
integer

Maximum credits this agent may spend in a single run or refresh (1000 to 200000); delivery-driven monitors stop once their total delivered results reach it. Omit for no limit.

Required range: 1000 <= x <= 200000

Response

Success

agent
object
required