Skip to main content

Identifying Workspaces and apps with their slugs

The API (and the Bitrise support team) often asks for slugs: a Workspace slug or a project slug. A slug is a unique identifier of one of these resources, consisting of hexadecimal numbers. You can find the slugs of a given Workspace or project both on the UI and in the API.

Finding a slug on the Bitrise websiteClick to copy link

You can find both Workspace slugs and project slugs on the Bitrise website.

  1. Log in to Bitrise and hover over the left navigation bar.

  2. Make sure you have the right workspace selected in the Workspace menu.

  3. Select Settings.

    workspace-settings.png

  4. On the Workspace settings page, select `General settings from the left navigation menu.

  5. Find the Workspace slug in the Workspace information section. You can copy the slug by clicking the copy button next to it.

    workspace-slug.png

Finding a slug with the Bitrise APIClick to copy link

You can get the slug for all Workspaces and apps you have access to with simple API calls.

  1. Authenticate with the Bitrise API.

  2. Call the GET /organizations endpoint with your Personal Access Token:

    curl -X 'GET' \
    'https://api.bitrise.io/v0.1/organizations' \
    -H 'accept: application/json' \
    -H 'Authorization: <ACCESS-TOKEN>'
  3. Find the slug in the response:

    {
    "name": "TestOrg",
    "slug": "2dec5c71bbce73d9",
    "avatar_icon_url": "https://bitrise-public-content-production.s3.amazonaws.com/org-icons/default_avatar-09.png",
    "concurrency_count": null,
    "owners": [
    {
    "slug": "1b3f130835b1c09ef2",
    "username": "bitbot",
    "email": "[email protected]"
    },
    ]
    },