---
title: "CheckAuthenticationForHost"
method: POST
path: "/gitpod.v1.RunnerService/CheckAuthenticationForHost"
tags: ["gitpod.v1.RunnerService"]
---

# CheckAuthenticationForHost

`POST /gitpod.v1.RunnerService/CheckAuthenticationForHost`

Checks if a user is authenticated for a specific host.

 Use this method to:
 - Verify authentication status
 - Get authentication URLs
 - Check PAT support

 ### Examples

 - Check authentication:

   Verifies authentication for a host.

   ```yaml
   host: "github.com"
   ```

## Request body

- GitpodV1CheckAuthenticationForHostRequest
  - `host` string
  - `runnerId` string, uuid

## Response `200`

Success

- GitpodV1CheckAuthenticationForHostResponse
  - `authenticated` boolean
  - `authenticationUrl` string
  - `patSupported` boolean
  - `scmId` string — scm_id is the unique identifier of the SCM provider
  - `scmName` string — scm_name is the human-readable name of the SCM provider (e.g., "GitHub", "GitLab")
  - `supportsOauth2` GitpodV1CheckAuthenticationForHostResponseAuthenticationMethodOAuth2
    - `authUrl` string — auth_url is the URL where users can authenticate
    - `docsUrl` string — docs_url is the URL to the documentation explaining this authentication method
  - `supportsPat` GitpodV1CheckAuthenticationForHostResponseAuthenticationMethodPersonalAccessToken
    - `createUrl` string — create_url is the URL where users can create a new Personal Access Token
    - `docsUrl` string — docs_url is the URL to the documentation explaining PAT usage for this host
    - `example` string — example is an example of a Personal Access Token
    - `requiredScopes` string[] — required_scopes is the list of permissions required for the Personal Access Token

## Other responses

- `default` — Error

---

[API](https://skmtc.net/gitpod-io/apis/gitpod-v1.md) · [All operations](https://skmtc.net/gitpod-io/apis/gitpod-v1/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gitpod-io/gitpod-v1/revisions/44d50c2ac284/schema)
