Skip to content
Navigation

createOrgConnectionRequest

Request a connection to a provider, and answer the link where a person signs in to complete it. A member whom the org allows createConnections may ask. audience is org to share the connection with the org, or user to keep it to you. extension_name names the extension it is for, whose latest release's provider reads the credentials' health; it is refused when no published version of that extension, a branch's prerelease included, declares a connection to the provider.

POST
/orgs/{org_id}/connection-requests

Path parameters

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

Request body JSON required

  • provider_id
    string
    required
    pattern: ^prv_[0-9a-f]{64}$
  • audience
    org
    or
    user
    required
  • extension_name
    optional
    string
    maxLength: 129 · pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*\.[a-z0-9]+(?:-[a-z0-9]+)*$
  • expires_in_seconds
    optional
    integer
    maximum: 1800 · minimum: 1

Returns

201

CreatedConnectionRequest

JSON
  • id
    string
    required
    pattern: ^connection_request_[0-7][0-9a-hjkmnp-tv-z]{25}$
  • provider
    object
    required
    • id
      string
      required
      pattern: ^prv_[0-9a-f]{64}$
    • definition
      object
      required
      • name
        string
        required
        minLength: 1
      • auth
        map of
        AuthMethodDefinition
        required
      • hosts
        array of
        string
        required
        pattern: ^(\*\.(?=[^.:]+\.))?[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*(?::[1-9][0-9]{0,4})?$
  • audience
    org
    or
    user
    required
  • status
    pending
    or
    completed
    or
    expired
    required
  • extension_name
    required

    One of the following:

    • string
    • null
  • connection_id
    required

    One of the following:

    • ConnectionId
    • null
  • oauth
    array of
    object
    required
    • method
      string
      required
      minLength: 1
    • issuer
      string
      required
    • client
      required

      One of the following:

      • object
        • client_id
          string
          required
        • managed
          boolean
          required
      • null
  • created_by_id
    string
    required
    pattern: ^(?:user|extension)_[0-7][0-9a-hjkmnp-tv-z]{25}$
  • created_at
    string
    required
  • expires_at
    string
    required

400

InvalidRequest | RequestBodyTooDeep
JSON

One of the following:

  • InvalidRequestEncoded
    • _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
  • RequestBodyTooDeepEncoded
    • _tag
      RequestBodyTooDeep
      required
    • max_depth
      integer
      required
      maximum: 9007199254740991 · minimum: -9007199254740991

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

ProviderNotFound | ExtensionNotFound | OrgNotFound
JSON

One of the following:

  • ProviderNotFoundEncoded
    • _tag
      ProviderNotFound
      required
    • provider_id
      string
      required
      pattern: ^prv_[0-9a-f]{64}$
  • ExtensionNotFoundEncoded
    • _tag
      ExtensionNotFound
      required
    • extension_name
      string
      required
      minLength: 1
  • OrgNotFoundEncoded
    • _tag
      OrgNotFound
      required

409

ProviderNotDeclared
JSON
  • _tag
    ProviderNotDeclared
    required
  • extension_name
    string
    required
  • provider_id
    string
    required
    pattern: ^prv_[0-9a-f]{64}$
  • message
    string
    required

413

RequestBodyTooLarge
JSON
  • _tag
    RequestBodyTooLarge
    required
  • max_bytes
    integer
    required
    maximum: 9007199254740991 · minimum: -9007199254740991

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