Skip to content
Navigation

getOrgBySlug

Read the org a slug names: the org that goes by it, or the org that last went by it if no org has taken it since, answered with its current slug. A link that uses an org's old slug finds it this way. OrgNotFound when no org you belong to goes or went by it.

GET
/org-slugs/{org_slug}

Path parameters

  • org_slug
    string
    required
    maxLength: 64 · pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$

Returns

200

Org

JSON
  • id
    string
    required
    pattern: ^org_[0-7][0-9a-hjkmnp-tv-z]{25}$
  • name
    string
    required
    minLength: 1
  • slug
    string
    required
    maxLength: 64 · pattern: ^[a-z0-9]+(?:-[a-z0-9]+)*$

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

ForbiddenOrigin | RequiresPersonalSession | RunBranchRequired
JSON

One of the following:

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

404

OrgNotFound
JSON
  • _tag
    OrgNotFound
    required

429

RateLimited
JSON
  • _tag
    RateLimited
    required

500

OrgFailure | ControlPlaneFailure
JSON

One of the following:

  • OrgFailureEncoded
    • _tag
      OrgFailure
      required
    • reason
      string
      required
  • ControlPlaneFailureEncoded
    • _tag
      ControlPlaneFailure
      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