Find snippets
curl --request GET \
--url https://enterprise-api.writer.com/snippet/organization/{organizationId}/team/{teamId} \
--header 'Authorization: <authorization>'import requests
url = "https://enterprise-api.writer.com/snippet/organization/{organizationId}/team/{teamId}"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://enterprise-api.writer.com/snippet/organization/{organizationId}/team/{teamId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"totalCount": 123,
"pagination": {
"offset": 123,
"limit": 123
},
"result": [
{
"id": "<string>",
"snippet": "<string>",
"creationTime": "2023-11-07T05:31:56Z",
"modificationTime": "2023-11-07T05:31:56Z",
"createdUser": {
"id": 123,
"fullName": "<string>",
"email": "<string>"
},
"modifiedUser": {
"id": 123,
"fullName": "<string>",
"email": "<string>"
},
"shortcut": "<string>",
"description": "<string>",
"tags": [
{
"tag": "<string>"
}
]
}
]
}{
"tpe": "<string>",
"extras": "<unknown>",
"errors": [
{
"description": "<string>",
"key": "<string>",
"extras": "<unknown>"
}
]
}{
"tpe": "<string>",
"extras": "<unknown>",
"errors": [
{
"description": "<string>",
"key": "<string>",
"extras": "<unknown>"
}
]
}{
"tpe": "<string>",
"extras": "<unknown>",
"errors": [
{
"description": "<string>",
"key": "<string>",
"extras": "<unknown>"
}
]
}{
"tpe": "<string>",
"extras": "<unknown>",
"errors": [
{
"description": "<string>",
"key": "<string>",
"extras": "<unknown>"
}
]
}{
"tpe": "<string>",
"extras": "<unknown>",
"errors": [
{
"description": "<string>",
"key": "<string>",
"extras": "<unknown>"
}
]
}Snippet
Find snippets
GET
/
snippet
/
organization
/
{organizationId}
/
team
/
{teamId}
Find snippets
curl --request GET \
--url https://enterprise-api.writer.com/snippet/organization/{organizationId}/team/{teamId} \
--header 'Authorization: <authorization>'import requests
url = "https://enterprise-api.writer.com/snippet/organization/{organizationId}/team/{teamId}"
headers = {"Authorization": "<authorization>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<authorization>'}};
fetch('https://enterprise-api.writer.com/snippet/organization/{organizationId}/team/{teamId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"totalCount": 123,
"pagination": {
"offset": 123,
"limit": 123
},
"result": [
{
"id": "<string>",
"snippet": "<string>",
"creationTime": "2023-11-07T05:31:56Z",
"modificationTime": "2023-11-07T05:31:56Z",
"createdUser": {
"id": 123,
"fullName": "<string>",
"email": "<string>"
},
"modifiedUser": {
"id": 123,
"fullName": "<string>",
"email": "<string>"
},
"shortcut": "<string>",
"description": "<string>",
"tags": [
{
"tag": "<string>"
}
]
}
]
}{
"tpe": "<string>",
"extras": "<unknown>",
"errors": [
{
"description": "<string>",
"key": "<string>",
"extras": "<unknown>"
}
]
}{
"tpe": "<string>",
"extras": "<unknown>",
"errors": [
{
"description": "<string>",
"key": "<string>",
"extras": "<unknown>"
}
]
}{
"tpe": "<string>",
"extras": "<unknown>",
"errors": [
{
"description": "<string>",
"key": "<string>",
"extras": "<unknown>"
}
]
}{
"tpe": "<string>",
"extras": "<unknown>",
"errors": [
{
"description": "<string>",
"key": "<string>",
"extras": "<unknown>"
}
]
}{
"tpe": "<string>",
"extras": "<unknown>",
"errors": [
{
"description": "<string>",
"key": "<string>",
"extras": "<unknown>"
}
]
}We’re deprecating these API endpoints, so the AI Studio API key setup won’t work. [Contact support] (https://support.writer.com/) if you need them.
Headers
Query Parameters
Available options:
shortcut, creationTime, modificationTime Available options:
asc, desc Was this page helpful?
⌘I