cURL
curl -X GET \
-H 'Authorization: Bearer $API_KEY' \
-H 'Accept: application/json' \
'$BASE_URL/workflows'import requests
headers = {
'x-api-key': '<YOUR_API_KEY>',
'Authorization': 'Bearer <YOUR_JWT_TOKEN>',
'Accept': 'application/json'
}
resp = requests.get('https://accounts.playbook3d.com/workflows', headers=headers)
print(resp.status_code, resp.json())fetch('https://accounts.playbook3d.com/workflows', {
method: 'GET',
headers: {
'x-api-key': '<YOUR_API_KEY>',
'Authorization': 'Bearer <YOUR_JWT_TOKEN>',
'Accept': 'application/json'
}
})
.then(res => res.json())
.then(data => console.log(data))
.catch(err => console.error(err));// Using HttpClient
HttpClient client = new HttpClient();
client.DefaultRequestHeaders.Add("x-api-key", "<YOUR_API_KEY>");
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", "<YOUR_JWT_TOKEN>");
var response = await client.GetAsync("https://accounts.playbook3d.com/workflows");
string content = await response.Content.ReadAsStringAsync();
Console.WriteLine(response.StatusCode);
Console.WriteLine(content);[
{
"id": "14ac2bd4-833c-4baa-bb03-7395463197bd",
"name": "My Example Workflow"
},
{
"id": "c613ad9f-99e2-4de2-8fda-737612fb5c13",
"name": "Another Workflow"
}
]{
"description": "Bad Request. Possibly invalid parameters."
}{
"description": "Unauthorized. The Bearer token or API key is invalid or missing."
}{
"description": "Forbidden. The user does not have permission to view these workflows."
}{
"description": "Not Found. The /workflows endpoint could not be found."
}{
"description": "Internal Server Error. Something went wrong on the server."
}Workflows
Get Workflows
Retrieves all workflows associated with the current user or their teams.
GET
/
workflows
cURL
curl -X GET \
-H 'Authorization: Bearer $API_KEY' \
-H 'Accept: application/json' \
'$BASE_URL/workflows'import requests
headers = {
'x-api-key': '<YOUR_API_KEY>',
'Authorization': 'Bearer <YOUR_JWT_TOKEN>',
'Accept': 'application/json'
}
resp = requests.get('https://accounts.playbook3d.com/workflows', headers=headers)
print(resp.status_code, resp.json())fetch('https://accounts.playbook3d.com/workflows', {
method: 'GET',
headers: {
'x-api-key': '<YOUR_API_KEY>',
'Authorization': 'Bearer <YOUR_JWT_TOKEN>',
'Accept': 'application/json'
}
})
.then(res => res.json())
.then(data => console.log(data))
.catch(err => console.error(err));// Using HttpClient
HttpClient client = new HttpClient();
client.DefaultRequestHeaders.Add("x-api-key", "<YOUR_API_KEY>");
client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", "<YOUR_JWT_TOKEN>");
var response = await client.GetAsync("https://accounts.playbook3d.com/workflows");
string content = await response.Content.ReadAsStringAsync();
Console.WriteLine(response.StatusCode);
Console.WriteLine(content);[
{
"id": "14ac2bd4-833c-4baa-bb03-7395463197bd",
"name": "My Example Workflow"
},
{
"id": "c613ad9f-99e2-4de2-8fda-737612fb5c13",
"name": "Another Workflow"
}
]{
"description": "Bad Request. Possibly invalid parameters."
}{
"description": "Unauthorized. The Bearer token or API key is invalid or missing."
}{
"description": "Forbidden. The user does not have permission to view these workflows."
}{
"description": "Not Found. The /workflows endpoint could not be found."
}{
"description": "Internal Server Error. Something went wrong on the server."
}Headers
Your API key. This is required by most endpoints to access the API programmatically. You can view your x-api-key using the 'Profile' tab on the website.
Bearer token for authentication (JWT).
⌘I