Skip to content
Navigation

getOrgOpenApiImport

Read whether an import is still importing, ready, or failed. A ready import summarizes its document: servers, security schemes, and its operations counted by method and by tag.

GET
/orgs/{org_id}/openapi-imports/{import_id}

Path parameters

  • org_id
    string
    required
    pattern: ^org_[0-7][0-9a-hjkmnp-tv-z]{25}$
  • import_id
    string
    required
    minLength: 1

Returns

200

OpenApiImport

JSON
  • id
    string
    required
    minLength: 1
  • org_id
    string
    required
    pattern: ^org_[0-7][0-9a-hjkmnp-tv-z]{25}$
  • state
    importing
    or
    ready
    or
    failed
    required
  • summary
    required

    One of the following:

    • OpenApiDocumentSummary
      • title
        required

        One of the following:

        • string
        • null
      • version
        required

        One of the following:

        • string
        • null
      • servers
        array of
        string
        required
      • security_schemes
        object
        required
      • operations
        integer
        required
        maximum: 9007199254740991 · minimum: -9007199254740991
      • methods
        map of
        integer
        required
      • tags
        array of
        object
        required
        • tag
          string
          required
        • operations
          integer
          required
          maximum: 9007199254740991 · minimum: -9007199254740991
      • content_hash
        string
        required
        minLength: 1
    • null
  • failure
    required

    One of the following:

    • string
    • null

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

OrgNotFound | OpenApiImportNotFound
JSON

One of the following:

  • OrgNotFoundEncoded
    • _tag
      OrgNotFound
      required
  • OpenApiImportNotFoundEncoded
    • _tag
      OpenApiImportNotFound
      required

429

RateLimited
JSON
  • _tag
    RateLimited
    required

500

OrgFailure
JSON
  • _tag
    OrgFailure
    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