Saltar al contenido

Your first call

From nothing to a correct response. Three steps, nothing to install.

  1. 1

    Get a token

    An owner or admin of the organization creates a Personal Access Token under Settings → API keys. The token (pjk_live_…) is shown ONCE: copy it and put it in a secret manager.

  2. 2

    Make the call

    Send the token in the Authorization header. To read your own profile:

    bash
    curl https://api.projektrepublic.com/api/v1/auth/me \
      -H "Authorization: Bearer pjk_live_xxxxxxxxxxxxxxxxxxxx"
  3. 3

    Walk your organizations

    Almost everything hangs off an organization, and its id goes in the path. To list one organization’s projects:

    bash
    curl https://api.projektrepublic.com/api/v1/organizations/{org_id}/projects \
      -H "Authorization: Bearer pjk_live_xxxxxxxxxxxxxxxxxxxx"

Every response carries an X-Request-ID header. Keep it: it is what makes your specific request findable when something goes wrong.