cURL
curl --location --request GET https://api.writer.com/v1/applications/{application_id}/graphs \
--header "Authorization: Bearer <token>"import os
from writerai import Writer
client = Writer(
api_key=os.environ.get("WRITER_API_KEY"), # This is the default and can be omitted
)
application_graphs_response = client.applications.graphs.list(
"application_id",
)
print(application_graphs_response.graph_ids)import Writer from 'writer-sdk';
const client = new Writer({
apiKey: process.env['WRITER_API_KEY'], // This is the default and can be omitted
});
async function main() {
const applicationGraphsResponse = await client.applications.graphs.list('application_id');
console.log(applicationGraphsResponse.graph_ids);
}
main();{
"graph_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}Applications API
Retrieve graphs
Retrieve Knowledge Graphs associated with a no-code agent that has chat capabilities.
GET
/
v1
/
applications
/
{application_id}
/
graphs
cURL
curl --location --request GET https://api.writer.com/v1/applications/{application_id}/graphs \
--header "Authorization: Bearer <token>"import os
from writerai import Writer
client = Writer(
api_key=os.environ.get("WRITER_API_KEY"), # This is the default and can be omitted
)
application_graphs_response = client.applications.graphs.list(
"application_id",
)
print(application_graphs_response.graph_ids)import Writer from 'writer-sdk';
const client = new Writer({
apiKey: process.env['WRITER_API_KEY'], // This is the default and can be omitted
});
async function main() {
const applicationGraphsResponse = await client.applications.graphs.list('application_id');
console.log(applicationGraphsResponse.graph_ids);
}
main();{
"graph_ids": [
"3c90c3cc-0d44-4b50-8888-8dd25736052a"
]
}No-code applications are now called no-code agents. The Applications API, which you can use to programmatically interact with no-code agents, still uses the term
application to minimize breaking changes.Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your Writer API key.
Path Parameters
The ID of the no-code agent for which to retrieve Knowledge Graphs.
Response
200 - application/json
Successful
A list of Knowledge Graphs associated with the application.
Was this page helpful?