API

ProactiveAgentWaitlistEntry

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
POST /api/v1/proactive_agent_waitlist_entries create The email was already on the waitlist; its current place
GET /api/v1/proactive_agent_waitlist_entries/{referral_code} load The entry's current place

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

proactive_agent_waitlist_entry, err := client.ProactiveAgentWaitlistEntry(nil).Load(map[string]any{"id": "example_id"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(proactive_agent_waitlist_entry)
created, err := client.ProactiveAgentWaitlistEntry(nil).Create(map[string]any{"email": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)

Lua

Construct client as shown in the Lua setup, then call the operations:

local proactive_agent_waitlist_entry, err = client:ProactiveAgentWaitlistEntry():load({ id = "example_id" })
local created, err = client:ProactiveAgentWaitlistEntry():create({ email = "example" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$proactive_agent_waitlist_entry = $client->ProactiveAgentWaitlistEntry()->load(["id" => "example_id"]);
$created = $client->ProactiveAgentWaitlistEntry()->create(["email" => "example"]);

Python

Construct client as shown in the Python setup, then call the operations:

proactive_agent_waitlist_entry = client.ProactiveAgentWaitlistEntry().load({"id": "example_id"})
created = client.ProactiveAgentWaitlistEntry().create({ "email": "example" })

Ruby

Construct client as shown in the Ruby setup, then call the operations:

proactive_agent_waitlist_entry = client.ProactiveAgentWaitlistEntry.load({ "id" => "example_id" })
created = client.ProactiveAgentWaitlistEntry.create({ "email" => "example" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const proactive_agent_waitlist_entry = await client.ProactiveAgentWaitlistEntry().load({ id: "example_id" })
const created = await client.ProactiveAgentWaitlistEntry().create({ email: "example" })

Fields

Field Type Required Description
email string Yes Email
first_task one,string,null No The first job they would hand an agent.
invite_code one,string,null No The referral code of the invite link they arrived through.
places_per_referral integer Yes Most places one referral moves the entry up; fewer when boosted entries are ahead.
position integer Yes 1-based place in the queue.
position_after_next_referral integer Yes The place one more referral would give this entry, as Rails would assign it.
referral_code string Yes Shared in this entry's invite link.
referral_count integer Yes People who joined through this entry's link.
total integer Yes Display total including a random increment per signup; not the actual number of entries.
website one,string,null No Honeypot.

create

POST /api/v1/proactive_agent_waitlist_entries

Operation ID: api_v1_proactive_agent_waitlist_entries.

Authentication: not required.

Request body

application/json

Property Type Required Description
email string Yes
first_task string No The first job they would hand an agent. Optional.
invite_code string No The referral code of the invite link they arrived through.
website string No Honeypot. Render it hidden and leave it empty; any value discards the request.

Responses

200: The email was already on the waitlist; its current place

application/json

Property Type Required Description
places_per_referral integer Yes Most places one referral moves the entry up; fewer when boosted entries are ahead.
position integer Yes 1-based place in the queue.
position_after_next_referral integer Yes The place one more referral would give this entry, as Rails would assign it.
referral_code string Yes Shared in this entry's invite link.
referral_count integer Yes People who joined through this entry's link.
total integer Yes Display total including a random increment per signup; not the actual number of entries.
201: Joined (or silently discarded as spam)

application/json

Property Type Required Description
places_per_referral integer Yes Most places one referral moves the entry up; fewer when boosted entries are ahead.
position integer Yes 1-based place in the queue.
position_after_next_referral integer Yes The place one more referral would give this entry, as Rails would assign it.
referral_code string Yes Shared in this entry's invite link.
referral_count integer Yes People who joined through this entry's link.
total integer Yes Display total including a random increment per signup; not the actual number of entries.
400: The email was missing from the request body
422: A field failed validation
429: Too many requests from this IP

load

GET /api/v1/proactive_agent_waitlist_entries/{referral_code}

Operation ID: api_v1_proactive_agent_waitlist_entry.

Authentication: not required.

Parameters

Parameter In Type Required Description
referral_code path string Yes

Responses

200: The entry's current place

application/json

Property Type Required Description
places_per_referral integer Yes Most places one referral moves the entry up; fewer when boosted entries are ahead.
position integer Yes 1-based place in the queue.
position_after_next_referral integer Yes The place one more referral would give this entry, as Rails would assign it.
referral_code string Yes Shared in this entry's invite link.
referral_count integer Yes People who joined through this entry's link.
total integer Yes Display total including a random increment per signup; not the actual number of entries.
404: No entry has this referral code
429: Too many requests from this IP