Box Developerドキュメント

IDを指定してAIエージェントを取得

ガイド Box AI Studio AI Studioエージェント IDを指定してAIエージェントを取得

IDを指定してAIエージェントを取得

GET /2.0/ai_agents/{id}エンドポイントを使用すると、agent_idパラメータを使用して特定のAIエージェントのリストを取得できます。

リクエストの送信

リクエストを送信するには、GET /2.0/ai_agents/{id}エンドポイントを使用します。

cURL
curl -i -X GET "https://api.box.com/2.0/ai_agents/1234567890" \
     -H "authorization: Bearer <ACCESS_TOKEN>"
TypeScript Gen
await client.aiStudio.getAiAgentById(createdAgent.id, {
  queryParams: { fields: ['ask'] } satisfies GetAiAgentByIdQueryParams,
} satisfies GetAiAgentByIdOptionalsInput);
Python Gen
client.ai_studio.get_ai_agent_by_id(created_agent.id, fields=["ask"])
.NET Gen
await client.AiStudio.GetAiAgentByIdAsync(agentId: createdAgent.Id, queryParams: new GetAiAgentByIdQueryParams() { Fields = Array.AsReadOnly(new [] {"ask"}) });

パラメータ

コールを実行するには、以下のパラメータを渡す必要があります。必須のパラメータは太字で示されています。

パラメータ説明
agent_id取得するエージェントID。1234
fieldsレスポンスで返されるフィールド。ask