---
title: ข้อมูลอ้างอิง API: Discovery
description: Platform API v1 ส่วน Discovery: path, พารามิเตอร์, ฟิลด์ของคำขอและคำตอบ, scope, idempotency และข้อผิดพลาดของทุก operation จาก contract
url: https://agentlab.cresclab.com/docs/th/api/discovery
language: th
updated: 2026-12-05
---

# ข้อมูลอ้างอิง API: Discovery

Platform API v1 ส่วน Discovery: path, พารามิเตอร์, ฟิลด์ของคำขอและคำตอบ, scope, idempotency และข้อผิดพลาดของทุก operation จาก contract

> [!NOTE]
> สร้างจาก API contract (Agent Lab Platform API 1.0.0-alpha.1) คำอธิบายเป็นภาษาอังกฤษตามต้นฉบับใน contract

Public documents a client reads before it can authenticate.

## This document, as JSON

`GET /v1/openapi.json`

| Scope | ทำในนามของ | การยืนยันตัวตน | Idempotency-Key |
| --- | --- | --- | --- |
| ไม่มี | — | ไม่มี | — |

### คำตอบ

| สถานะ | เนื้อหา | คำอธิบาย |
| --- | --- | --- |
| `200` | `application/json`: `object` | The OpenAPI document this server conforms to. |
| `503` | `application/json`: [Error](https://agentlab.cresclab.com/docs/th/api/schemas.md#Error) | Try again later (`recovery: retry`). |

#### `200` `application/json`

| ฟิลด์ | ชนิด | จำเป็น | คำอธิบาย |
| --- | --- | --- | --- |
| `openapi` | `string` | ใช่ | — |
| `info` | `object` | ใช่ | — |
| `paths` | `object` | ใช่ | — |

## OpenID Connect discovery

`GET /.well-known/openid-configuration`

Issuer, endpoints and the rules an OpenID relying party reads. Any origin may read it.

| Scope | ทำในนามของ | การยืนยันตัวตน | Idempotency-Key |
| --- | --- | --- | --- |
| ไม่มี | — | ไม่มี | — |

### คำตอบ

| สถานะ | เนื้อหา | คำอธิบาย |
| --- | --- | --- |
| `200` | `application/json`: [OpenIDConfiguration](https://agentlab.cresclab.com/docs/th/api/schemas.md#OpenIDConfiguration) | The provider metadata. |

## OAuth authorization server metadata (RFC 8414)

`GET /.well-known/oauth-authorization-server`

| Scope | ทำในนามของ | การยืนยันตัวตน | Idempotency-Key |
| --- | --- | --- | --- |
| ไม่มี | — | ไม่มี | — |

### คำตอบ

| สถานะ | เนื้อหา | คำอธิบาย |
| --- | --- | --- |
| `200` | `application/json`: [AuthorizationServerMetadata](https://agentlab.cresclab.com/docs/th/api/schemas.md#AuthorizationServerMetadata) | The authorization server metadata. |

## The key that signs channel event deliveries

`GET /.well-known/agentlab-sdk-event-key.json`

The public half of the Ed25519 key that signs `sdk-event/v1` deliveries
(`agentlab-sdk-event-v1-ed25519`). Cached for five minutes. When event delivery is not
configured the answer is 503, never an empty key a client could cache as valid.

| Scope | ทำในนามของ | การยืนยันตัวตน | Idempotency-Key |
| --- | --- | --- | --- |
| ไม่มี | — | ไม่มี | — |

### คำตอบ

| สถานะ | เนื้อหา | คำอธิบาย |
| --- | --- | --- |
| `200` | `application/json`: [SdkEventVerificationKey](https://agentlab.cresclab.com/docs/th/api/schemas.md#SdkEventVerificationKey) | The verification key. |
| `503` | `application/json`: [LegacyErrorString](https://agentlab.cresclab.com/docs/th/api/schemas.md#LegacyErrorString) | Event delivery is not configured on this server. |
