POST /api/v1/attachments/createwithworkspaceId, file name, and content type. The response includes an upload URL and an attachment id.PUTthe file bytes to that upload URL.POST /api/v1/attachments/completewith the attachment id.
POST /api/v1/attachments/create-from-url instead of the upload URL.
See the Attachments group in the API reference for the request bodies. The call needs the attachments:write scope, or a coarse scope that includes it.