Manual
CLI
API
Log in Get started free

Add a link to a key

Adds a link with extra context, such as a design, to a key.

Adds a link with extra context, such as a design, to a key.

HTTP
POST /keys/{keyId}/links

Access: Session token only. API keys get 403 with insufficient_scope.

Role: Project reviewer or manager.

Path parameters #

ParameterDescription
keyIdThe id of the key.

Request body #

JSON.

FieldTypeRequiredDescription
titlestringyesAt most 200 characters.
urlstringyesAn http:// or https:// address. At most 2000 characters.
descriptionstringnoAt most 1000 characters.
JSON
{ "title": "Design", "url": "https://example.com/design" }

Response 201 #

The link.

JSON
{ "id": "0197a3ca-8197-7e88-9bdf-3f7c9a4e6108", "icon": "link", "title": "Design", "url": "https://example.com/design", "description": null }

Response fields #

FieldTypeDescription
idstringThe id of the link.
iconstringAn icon name.
titlestringThe title.
urlstringThe address.
descriptionstring or nullThe description.

Errors #

StatuserrorWhen
401unauthenticatedThe token is missing or not valid.
404not_foundThe key does not exist, you have no access to its project, or keyId is not a UUID.
403forbiddenYou are a translator in the project.
422invalid_requesturl is not an http or https address, or a text is empty or too long.
429rate_limitedToo many requests, see Rate limiting.

See Errors for the error format.