Get a premise object by ID
GET
https://app.copyfactory.io/api/v2/premises/get/
Will get the sentence premise object by ID.
Query Parameters
The premise Id you wish to retrieve.
{
"data": {
"id": 19,
"order": 0,
"is_active": true,
"required_variables": [
"person_description"
],
"sentence_premise_name": "Contact",
"profile_name": "Copyfactory"
}
}
curl --location --request GET 'https://app.copyfactory.io/api/v2/premises/get?premise_id=PREMISE-ID/' \
--header 'Authorization: API-KEY'
import requests
url = "https://app.copyfactory.io/api/v2/premises/get/"
params = (('premise_id', PREMISE-ID),)
headers = {
'Authorization': 'API-KEY'
}
response = requests.request("GET", url, headers=headers, params=params)
print(response.text)