# Mint a short-lived signed URL for an attachment

For an attachment on a page the caller can see, returns a URL to
getAttachment carrying exp and sig, valid for 10 minutes, so an
<img> (which cannot send a bearer) can load it. 404 for anything the
caller cannot see.


Canonical: https://easerix.com/docs/developers/api/notes/sharing/signAttachmentUrl

{/* This file was generated by Fumadocs. Do not edit this file directly. Any changes should be made by running the generation command again. */}

export default function Layout(props) {
  const { APIPage, OpenAPIPage } = props.components ?? {};
  // "APIPage" is the old name from v10, this allows both for backward compatibility
  const Comp = OpenAPIPage ?? APIPage;
  return (
    <>
      {props.children}
      <Comp document="notes" operations={[{"path":"/v1/attachments/{id}/url","method":"post"}]} />
    </>
  );
}
