---
title: "Get Endpoint Oauth Config 2"
method: GET
path: "/api/v1/app/{app_id}/endpoint/{endpoint_id}/oauth-config"
tags: ["Endpoint"]
---

# Get Endpoint Oauth Config 2

`GET /api/v1/app/{app_id}/endpoint/{endpoint_id}/oauth-config`

Get endpoint OAuth status and configuration.

This is basically the same as v1.endpoint.get-oauth, but instead of returning a 404 when OAuth
is not enabled, it returns a 200 with `enabled: false` and `config: null`.

## Path parameters

- `app_id` string, required — The Application's ID or UID.
- `endpoint_id` string, required — The Endpoint's ID or UID.

## Response `200`

- EndpointOauthOut
  - `enabled` boolean, required
  - `config` EndpointOauthConfigOut
    - `grantType` 'clientCredentials' | 'refreshToken', required
    - `authMethod` 'clientSecretJwt' | 'clientSecretBasic' | 'clientSecretPost', required — The method used for authenticating to the OAuth authorization server. `clientSecretJwt` will construct a JWT used for authentication with the oauth authorization server. This method is less commonly used and may not be supported by all oauth providers. `clientSecretBasic` will authenticate to the oauth authorization server using an `Authorization` header with the client secret as the value. This is the most common means of authentication. `clientSecretPost` will authenticate to the oauth authorization server by passing the client secret in a `client_secret` field in the request body. This method may not be supported by all oauth providers, and in general `clientSecretBasic` should be preferred.
    - `clientId` string, required
    - `tokenUrl` string, required
    - `scopes` string[], nullable
    - `extraParams` object, nullable
    - `extraHeaders` object, nullable

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `409` — Conflict
- `422` — Validation Error
- `429` — Too Many Requests

---

[API](https://skmtc.net/svix/apis/svix-api.md) · [All operations](https://skmtc.net/svix/apis/svix-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/svix/svix-api/versions/16dbcc056c48/schema)
