List APIs
curl --request GET \
--url https://api.peel.sh/v1/apis \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.peel.sh/v1/apis', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.peel.sh/v1/apis"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"apis": [
{
"id": "<string>",
"url": "<string>",
"instructions": "<string>",
"name": "<string>",
"status": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"endpoint_count": 123,
"failure": {
"category": "access_policy",
"code": "<string>",
"message": "<string>",
"recommended_action": "contact_support",
"refund_reviewable": true,
"retryable": true,
"support_debug_id": "<string>",
"technical_reason": "<string>"
},
"links": {},
"build": {
"id": "<string>",
"kind": "build",
"status": "queued",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"user_input_prompt": {},
"progress": [
{}
],
"failure": {
"category": "access_policy",
"code": "<string>",
"message": "<string>",
"recommended_action": "contact_support",
"refund_reviewable": true,
"retryable": true,
"support_debug_id": "<string>",
"technical_reason": "<string>"
},
"version_id": "<string>",
"draft": true
},
"archived": true,
"repair": {
"enabled": true,
"last_checked_at": "2023-11-07T05:31:56Z",
"last_result": "healthy",
"next_check_at": "2023-11-07T05:31:56Z",
"reason": "<string>"
},
"version_id": "<string>"
}
],
"next_cursor": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"instance": "<string>",
"code": "<string>",
"message": "<string>",
"retryable": true,
"retry": "same_key",
"docs_url": "<string>",
"details": {}
}Build and manage APIs
List APIs
GET
/
v1
/
apis
List APIs
curl --request GET \
--url https://api.peel.sh/v1/apis \
--header 'X-API-Key: <api-key>'const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.peel.sh/v1/apis', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.peel.sh/v1/apis"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"apis": [
{
"id": "<string>",
"url": "<string>",
"instructions": "<string>",
"name": "<string>",
"status": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"endpoint_count": 123,
"failure": {
"category": "access_policy",
"code": "<string>",
"message": "<string>",
"recommended_action": "contact_support",
"refund_reviewable": true,
"retryable": true,
"support_debug_id": "<string>",
"technical_reason": "<string>"
},
"links": {},
"build": {
"id": "<string>",
"kind": "build",
"status": "queued",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"completed_at": "2023-11-07T05:31:56Z",
"user_input_prompt": {},
"progress": [
{}
],
"failure": {
"category": "access_policy",
"code": "<string>",
"message": "<string>",
"recommended_action": "contact_support",
"refund_reviewable": true,
"retryable": true,
"support_debug_id": "<string>",
"technical_reason": "<string>"
},
"version_id": "<string>",
"draft": true
},
"archived": true,
"repair": {
"enabled": true,
"last_checked_at": "2023-11-07T05:31:56Z",
"last_result": "healthy",
"next_check_at": "2023-11-07T05:31:56Z",
"reason": "<string>"
},
"version_id": "<string>"
}
],
"next_cursor": "<string>"
}{
"type": "<string>",
"title": "<string>",
"status": 499,
"instance": "<string>",
"code": "<string>",
"message": "<string>",
"retryable": true,
"retry": "same_key",
"docs_url": "<string>",
"details": {}
}⌘I