Email a business's owner or admin a link to connect the app
const url = 'https://api.threadkite.app/v1/app/connect-invitations';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"email":"hello@example.com","message":"example","ref":"customer-4821"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.threadkite.app/v1/app/connect-invitations \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "email": "hello@example.com", "message": "example", "ref": "customer-4821" }'The answer is always the same, so it says nothing about who uses Threadkite. We email only an owner’s or admin’s address, at most once an hour and three times a day per address, and up to a daily number per app. You hear of each connection by the app_installation.created webhook.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
An owner’s or admin’s email address at the business
A short note shown in the email
Your own value, passed on to your start URL as ref when they connect
Example
customer-4821Responses
Section titled “Responses”object
The same answer whether or not an email was sent, so it says nothing about who uses Threadkite. You hear of each connection by the app_installation.created webhook.
Example
{ "accepted": true}Missing or invalid app token (code invalid_app_token)
object
Stable machine-readable reason
With code invalid: every problem with the request, by field (message is the first)
object
Dotted path inside the item, e.g. attributes.price.amountMinor
Example
{ "statusCode": 403, "code": "forbidden", "message": "You do not have permission to do that.", "errors": [ { "message": "Enter the make" } ]}Rate limit reached
object
Stable machine-readable reason
Seconds until another request will be accepted
Example
{ "statusCode": 429, "code": "rate_limited", "message": "Too many requests. Each key can make 120 requests a minute; try again in 12 seconds.", "retryAfter": 12}