Skip to content
GET/api/v1/scim/ResourceTypes

SCIM ResourceTypes

SCIM 2.0 discovery — returns a ListResponse of the supported resource types (User → /Users, Group → /Groups) with each type's schema URN and meta.location. The body is fully static and carries no tenant data. The SCIM token's own per-operation allow-list is NOT consulted on this discovery path: any valid, unrevoked, unexpired SCIM token is accepted, including one whose allowed_operations list is empty, as is the legacy per-deployment SCIM_BEARER_TOKEN env token. API-key scopes are not evaluated here, so none is published. Authentication: the IdP-issued SCIM bearer token (`Authorization: Bearer scim_...`, the ScimBearer scheme), NOT an `eg_` API key — an API key is rejected on this path. API-key scopes are not evaluated here, so none is published; a SCIM token's own per-operation allow-list governs instead.

Authentication

This is a SCIM 2.0 provisioning endpoint. Send the SCIM bearer token issued to your organisation — not an eg_ API key, which will not authenticate here. Issue a token with POST /api/v1/scim/tokens and revoke it with DELETE /api/v1/scim/tokens — both require an org owner or admin role — then paste the token into your identity provider.

Response

All status codes

200ResourceTypes.
400(no description)
401(no description)
429(no description)

Code samples

cURL

curl -X GET \
  https://evalguard.ai/api/v1/scim/ResourceTypes \
  -H "Authorization: Bearer $EVALGUARD_API_KEY"

TypeScript

// The TypeScript SDK (@evalguard/sdk) exposes TYPED methods — runEval,
// getEval, runSecurityScan, checkFirewall, … — not a generic request().
// For an arbitrary endpoint, call it directly:

const res = await fetch("https://evalguard.ai/api/v1/scim/ResourceTypes", {
  method: "GET",
  headers: { Authorization: `Bearer ${process.env.EVALGUARD_API_KEY}` },
});
console.log(res.status, await res.json());

Python

# The Python SDK (pip install evalguardai) exposes TYPED methods on
# EvalGuardClient — run_eval, get_eval, … — not a generic request().
# For an arbitrary endpoint, call it directly:

import os
import requests

headers = {"Authorization": f"Bearer {os.environ['EVALGUARD_API_KEY']}"}

response = requests.request("GET", "https://evalguard.ai/api/v1/scim/ResourceTypes", headers=headers)
print(response.status_code, response.json())

Go

package main

import (
	"context"
	"fmt"
	"net/http"
	"os"
)

func main() {
	req, _ := http.NewRequestWithContext(context.Background(), "GET", "https://evalguard.ai/api/v1/scim/ResourceTypes", nil)
	req.Header.Set("Authorization", "Bearer "+os.Getenv("EVALGUARD_API_KEY"))
	resp, err := http.DefaultClient.Do(req)
	if err != nil { panic(err) }
	defer resp.Body.Close()
	fmt.Println(resp.Status)
}

Errors

400401429

Other SCIM endpoints