List and search callable Plays
curl --request GET \
--url https://code.deepline.com/api/v2/plays \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://code.deepline.com/api/v2/plays', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://code.deepline.com/api/v2/plays"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"plays": [
{
"name": "<string>",
"reference": "<string>",
"displayName": "<string>",
"description": "<string>",
"origin": "<string>",
"ownerType": "<string>",
"scope": "<string>",
"inputSchema": {},
"outputSchema": {},
"currentRevision": {},
"liveRevision": {},
"canEdit": true,
"canClone": true
}
]
}{
"error": "Unauthorized"
}{
"error": "Unauthorized"
}Plays and runs
List and search callable Plays
Lists saved and prebuilt Plays available to the authenticated workspace. Use search or grep to narrow by capability before starting a run.
GET
/
api
/
v2
/
plays
List and search callable Plays
curl --request GET \
--url https://code.deepline.com/api/v2/plays \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://code.deepline.com/api/v2/plays', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://code.deepline.com/api/v2/plays"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"plays": [
{
"name": "<string>",
"reference": "<string>",
"displayName": "<string>",
"description": "<string>",
"origin": "<string>",
"ownerType": "<string>",
"scope": "<string>",
"inputSchema": {},
"outputSchema": {},
"currentRevision": {},
"liveRevision": {},
"canEdit": true,
"canClone": true
}
]
}{
"error": "Unauthorized"
}{
"error": "Unauthorized"
}