Skip to content
Navigation

getRepoAttachmentBlobContent

Redirect to a short-lived signed URL for an attachment blob's file. With disposition=inline, an image (PNG, JPEG, GIF, WebP or AVIF) or a PDF is served to show in place, as in a frame or a new tab; any other type, and any file without it, downloads.

GET
/repos/{repo_id}/attachment-blobs/{attachment_blob_id}/content

Path parameters

  • repo_id
    string
    required
    pattern: ^repo_[0-7][0-9a-hjkmnp-tv-z]{25}$
  • attachment_blob_id
    string
    required
    pattern: ^[a-z](?:[a-z_]{0,61}[a-z])?_[0-7][0-9a-hjkmnp-tv-z]{25}$

Query parameters

  • disposition
    optional
    attachment
    or
    inline

Returns

302

<No Content>

400

InvalidRequest
JSON
  • _tag
    InvalidRequest
    required
  • part
    path
    or
    query
    or
    headers
    or
    body
    required
  • issues
    array of
    object
    required
    • path
      array of
      required

      One of the following:

      • string
      • integer
    • message
      string
      required

401

InvalidCredentials
JSON
  • _tag
    InvalidCredentials
    required

403

Forbidden | ForbiddenOrigin | RequiresPersonalSession | RunBranchRequired
JSON

One of the following:

  • ForbiddenEncoded
    • _tag
      Forbidden
      required
    • message
      string
      required
  • ForbiddenOriginEncoded
    • _tag
      ForbiddenOrigin
      required
  • RequiresPersonalSessionEncoded
    • _tag
      RequiresPersonalSession
      required
  • RunBranchRequiredEncoded
    • _tag
      RunBranchRequired
      required
    • branch
      string
      required
      minLength: 1
    • message
      string
      required

404

AttachmentBlobNotFound | RepoNotFound
JSON

One of the following:

  • AttachmentBlobNotFoundEncoded
    • _tag
      AttachmentBlobNotFound
      required
    • attachment_blob_id
      string
      required
      pattern: ^[a-z](?:[a-z_]{0,61}[a-z])?_[0-7][0-9a-hjkmnp-tv-z]{25}$
  • RepoNotFoundEncoded
    • _tag
      RepoNotFound
      required

429

RateLimited
JSON
  • _tag
    RateLimited
    required

500

AttachmentUrlFailed | RepoFailure
JSON

One of the following:

  • AttachmentUrlFailedEncoded
    • _tag
      AttachmentUrlFailed
      required
  • RepoFailureEncoded
    • _tag
      RepoFailure
      required
    • reason
      string
      required

503

SessionUnavailable | RateLimitUnavailable
JSON

One of the following:

  • SessionUnavailableEncoded
    • _tag
      SessionUnavailable
      required
  • RateLimitUnavailableEncoded
    • _tag
      RateLimitUnavailable
      required

Type to search…

↑↓ navigate↵ selectEsc close