Read the Notes link preview setting
GET
/api/v1/notes/link-previews/settings
const url = 'https://example.com/api/v1/notes/link-previews/settings';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/v1/notes/link-previews/settings \ --header 'Authorization: Bearer <token>'Route: /api/v1/notes/link-previews/settings. Inputs: . Safe reads can use bounded retries.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”Media typeapplication/json
Persisted per-User link preview switch; it defaults on for older settings files (#1151).
object
show_link_previews
required
boolean
Examplegenerated
{ "show_link_previews": true}Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}Media typeapplication/json
The standard API error response: { "error": { ... } }.
object
Example
{ "error": { "code": "bad_request" }}