curl --request GET \
--url https://app.thinnest.ai/api/v1/agents/{id}/byok-model \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.thinnest.ai/api/v1/agents/{id}/byok-model', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.thinnest.ai/api/v1/agents/{id}/byok-model"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"provider": {
"id": "openai",
"label": "OpenAI"
},
"model": "gpt-5.4-mini",
"workspaceModel": "gpt-5.4-nano",
"stale": null
}Get Agent BYOK Model
On a workspace that brings its own keys: the model this agent runs on your own LLM key. model is the agent’s own choice (null when it runs the key’s model), and stale names an earlier choice your key no longer reaches, which the key’s model answers in place of. Refused with 409 when the workspace is not using its own keys, or when this agent is set to byok: "off" (it then runs on our models, and a choice you set is not available to read until you put it back on the workspace’s keys).
curl --request GET \
--url https://app.thinnest.ai/api/v1/agents/{id}/byok-model \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://app.thinnest.ai/api/v1/agents/{id}/byok-model', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://app.thinnest.ai/api/v1/agents/{id}/byok-model"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"provider": {
"id": "openai",
"label": "OpenAI"
},
"model": "gpt-5.4-mini",
"workspaceModel": "gpt-5.4-nano",
"stale": null
}Authorizations
Headers
Developers only: the customer workspace this request acts in — its org_… id from POST /customers. Leave it out to act in your own workspace. Refused with 404 (Workspace not found.) when the id is unknown, is not one of your customers, or is not an org_… id; 410 when that customer was deleted (restore it with POST /customers/{id}/restore until it is erased); 403 when the key belongs to one customer workspace (it cannot act as another); 400 when your workspace is not a developer workspace. /customers/* and GET /customers/usage are your own workspace's and refuse the header with 400: call them without it.
"org_3fKq9TzQ1mN8vB2xR7cLpA"
Path Parameters
Response
The agent's model on your LLM key.