Delete OAuth Provider

DELETE /v1/endpoints/{uuid}/oauth/providers/{provider_uuid}

Permanently remove an OAuth provider from an endpoint. Active sessions established via this provider remain valid until expiry — the platform doesn't currently force-revoke them when the provider is removed. New logins via this provider stop working immediately.

If you want to keep the configuration but stop offering it on the login page, use PUT /v1/toggle instead.

Path parameters

uuid string (uuid) Req
The endpoint's uuid.
provider_uuid string (uuid) Req
The provider's uuid. Get it from /oauth/providers. It resolves only under the endpoint in the path.

Deprecated: the legacy integer id is still accepted in the path until the sunset, answered with Deprecation and Sunset headers. Use the uuid.

Response (204 No Content)

Empty body on success.

Errors

401 Unauthorized
Missing auth.
403 Forbidden
Caller lacks the endpoints:delete permission in the active account.
404 Not Found
Endpoint doesn't belong to the calling account, or provider not found / not on this endpoint.
Request
curl -X DELETE "https://api.ngris.com/v1/endpoints/<uuid>/oauth/providers/019b407c-8a46-7001-897f-343e36ba8939" \ -H "X-API-KEY: <your_api_key>"
Python
from ngris import Ngris client = Ngris(api_key="<your_api_key>") client.endpoint_oauth.delete_provider("<endpoint_uuid>", "019b407c-8a46-7001-897f-343e36ba8939")
Response — 204 No Content
Was this helpful?
On this page
Delete OAuth Provider
Was this helpful?