List outcome types
GET
/v1/outcome-types
const url = 'https://api.localhost/v1/outcome-types';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api.localhost/v1/outcome-typesThe outcomes, core outcome types, sources, and bot truths that POST /v1/outcomes accepts.
Responses
Section titled “Responses”The outcome taxonomy.
Media typeapplication/json
object
version
required
string
outcomes
required
Array<string>
types
required
Array<object>
object
name
required
string
class
required
string
default_role
required
string
covers
required
string
sources
required
Array<string>
bot_truth
required
Array<string>
Example
{ "types": [ { "class": "fraud" } ]}