CompaniesCreate Magic Link

Create Magic Link

Create or retrieve an active magic link for the Company. If an active link already exists, its URL is returned with status 200. Otherwise a new link is created and returned with status 201.

curl -X POST "https://api.getkini.com/companies/123/magic/" \
  -H "Content-Type: application/json" \
  -H "Company-Id: 123" \
  -H "Authorization: Bearer YOUR_API_TOKEN"
{
  "data": "example_string"
}
POST
/companies/{id}/magic/
POST
Base URLstring

Target server for requests. Edit to use your own host.

Bearer Token
Bearer Tokenstring
Required

Bearer API Key Authentication. Include your API key in the Authorization header.

Bearer API Key Authentication. Include your API key in the Authorization header.
path
idinteger
Required

Unique Kini ID of the company

header
Company-Idinteger
Required

Kini ID of the company the key is associated with

Request Preview
Response

Response will appear here after sending the request

Authentication

header
Authorizationstring
Required

Bearer token. Bearer API Key Authentication. Include your API key in the Authorization header.

Path Parameters

idinteger
Required

Unique Kini ID of the company

Headers

Company-Idinteger
Required

Kini ID of the company the key is associated with

Responses

datastring

URL of the existing active magic link