Get Custom GPT
Returns a Custom GPT with its files. Subject to API key Custom GPT permissions.
GET
https://api.deutschlandgpt.de/v2/custom-gpts/{id}Example request
curl https://api.deutschlandgpt.de/v2/custom-gpts/{id} \
-X GET \
-H "Authorization: Bearer $DGPT_API_KEY"curl https://api.deutschlandgpt.de/v2/custom-gpts/{id} \
-X GET \
-H "Authorization: Bearer $DGPT_API_KEY"import os, requests
response = requests.get(
"https://api.deutschlandgpt.de/v2/custom-gpts/{id}",
headers={"Authorization": f"Bearer {os.environ['DGPT_API_KEY']}"},
)
print(response.json())import os, requests
response = requests.get(
"https://api.deutschlandgpt.de/v2/custom-gpts/{id}",
headers={"Authorization": f"Bearer {os.environ['DGPT_API_KEY']}"},
)
print(response.json())const response = await fetch('https://api.deutschlandgpt.de/v2/custom-gpts/{id}', {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.DGPT_API_KEY}`,
},
});
console.log(await response.json());const response = await fetch('https://api.deutschlandgpt.de/v2/custom-gpts/{id}', {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.DGPT_API_KEY}`,
},
});
console.log(await response.json());Parameters
idstring<uuid>requiredCustom GPT ID
Response
200application/json
{
"id": "00000000-0000-0000-0000-000000000000",
"name": "string",
"description": "string",
"instructions": "string",
"conversationStarters": "string",
"metadata": {
"files": [
{
"id": "string",
"name": "string"
}
],
"webBrowsing": {
"enabled": true
},
"imageGeneration": {
"enabled": true
},
"codeInterpreter": {
"enabled": true
}
},
"accessLevel": "string",
"promptSuggestions": [
"string"
],
"modelId": "00000000-0000-0000-0000-000000000000",
"createdAt": "2025-01-01T00:00:00Z",
"files": [
{
"id": "string",
"name": "string",
"type": "string",
"createdAt": "2025-01-01T00:00:00Z"
}
]
}{
"id": "00000000-0000-0000-0000-000000000000",
"name": "string",
"description": "string",
"instructions": "string",
"conversationStarters": "string",
"metadata": {
"files": [
{
"id": "string",
"name": "string"
}
],
"webBrowsing": {
"enabled": true
},
"imageGeneration": {
"enabled": true
},
"codeInterpreter": {
"enabled": true
}
},
"accessLevel": "string",
"promptSuggestions": [
"string"
],
"modelId": "00000000-0000-0000-0000-000000000000",
"createdAt": "2025-01-01T00:00:00Z",
"files": [
{
"id": "string",
"name": "string",
"type": "string",
"createdAt": "2025-01-01T00:00:00Z"
}
]
}Custom GPT with files
idstring<uuid>namestringdescriptionstring | nullinstructionsstring | nullconversationStartersstring | nullmetadataCustomGptMetadatafilesobject[]idstringnamestringwebBrowsingobjectenabledbooleanimageGenerationobjectenabledbooleancodeInterpreterobjectenabledbooleanaccessLevelstringpromptSuggestionsstring[]modelIdstring<uuid> | nullcreatedAtstring<date-time>filesobject[]idstringnamestringtypestringcreatedAtstring<date-time>Response codes
200
Custom GPT with files
CustomGptDetail401
Unauthorized
404
Custom GPT not found or access denied
Was this page helpful?