Get a Header

GET https://restapi.actonsoftware.com/api/1/header/{id}

This endpoint allows you to pull a specific header from the account.

Parameters

Name Parameter
Type
Allow
Multiple
Required/
Optional
Data Type Description
Authorization: Header False Required String Insert your generated access token.
("Bearer {access token}")
id Path False Required String Specify the ID of the header.

Response

{
  "id": 0,
  "title": "Default",
  "text": "To view this message in a browser:rnhttp://ci61.actonservice.com/acton/rif/42415/{{Env.MsgId}}/-/{{Env.RecId}}/{{Env.SrcId}}/showPreparedMessagern rn",
  "html": "<a class="msgHeader" href="http://ci61.actonservice.com/acton/rif/42415/{{Env.MsgId}}/-/{{Env.RecId}}/{{Env.SrcId}}/showPreparedMessage">Click here</a> to view this message in a browser window."
}

 

Code Examples

cURLPython

curl -X GET https://restapi.actonsoftware.com/api/1/header/0 -H "Authorization: Bearer 12345678-9abc-defg-hijk-lmnopqrs"

import requests

url = "https://restapi.actonsoftware.com/api/1/header/0"

payload = {}
headers = {
  'Authorization': 'Bearer 12345678-9abc-defg-hijk-lmnopqrs'
}

response = requests.request("GET", url, headers=headers, data = payload)

print(response.text.encode('utf8'))