TryzenAPI
Senders

Create a hosted connect link: your customer connects a LinkedIn account on our page

POST
/v1/senders/connect-links

Access: an API key (or an org-wide key naming the workspace) with manage on senders.

Answers the page URL (on your brand host when white-label is on; it contains the link's secret, so it is shown once), its expiry and the link id. The page offers the Tryzen extension or cookies, shows "Yes, that's me" and the inbox mode (inboxMode, default full, pre-selected), then redirects to successRedirectUrl?senderId=…&linkId=…&externalId=… (or failureRedirectUrl?code=…&linkId=…&externalId=…). Redirect URLs must be https (http only for localhost in development) and are the only places the page ever sends the customer. sender_status_changed webhooks carry connectLink: {id, externalId} for senders connected through a link. Add senderId to reconnect an existing sender (it keeps its id; proxyCountry may then be left out, and label too). A link an API key creates for a sender that holds no seat (disconnected in Tryzen, or an inactive seat) is refused with 409 seat_requires_person. proxy brings your own proxy for the new sender instead of a pool claim (new senders only): it is checked through itself now and must exit in proxyCountry, else 422 with the failure code (unreachable, auth_failed, timeout, echo_failed, country_mismatch); 409 proxy_in_use when it is already registered. The password is stored encrypted and never returned. The link expires after expiresInMinutes (default 60, at most 1440) and is used up once its sender is connected.

Authorization

apiKey
headerx-api-key<token>

Workspace API key (nrk_…), shown once when created

Request Body

application/json
  1. body
proxyCountry?string
Match^[A-Z]{2}$
label?string
Length1 <= length <= 120
senderId?string
Match^[0-9a-f]{24}$
proxy?
inboxMode?string
Default"full"
Value in"full""private"
successRedirectUrl?string
Length1 <= length <= 2000
failureRedirectUrl?string
Length1 <= length <= 2000
externalId?string
Length1 <= length <= 200
expiresInMinutes?integer
Range5 <= value <= 1440
Default60

Response Body

Default Response

application/json
  1. response
linkId*string
Match^[0-9a-f]{24}$
url*string
expiresAt*string
Match^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$
Formatdate-time
Example Request
curl -X POST 'https://api.tryzen.co/v1/senders/connect-links' \  -H 'Content-Type: application/json' \  -d '{}'
Example Response
{  "linkId": "string",  "url": "string",  "expiresAt": "2019-08-24T14:15:22Z"}