Pre-Travel Advisories (PTAs)

Requirements

A URL endpoint where we will POST the data.

http://www.example.com/ptas/new

The data is json encoded. We also provide a form data option (application/x-www-form-urlencoded).

An initial sync is provided to populate the database on your end. After that, we push data only when risk levels change or when advisories for that country are updated.

PTAs contain risk level, risk advisories (not risk alerts), summaries and custom text boxes that are added by admins on their Riskline portal. The text boxes can be country specific or global (for all countries) and also visible only for certain risk levels.

Fields

file: string, base64encoded file contents

country: string, uppercase, country iso code 2 letters

risk_level: integer, if client on Riskline manages its own risk levels for each country

client_id: integer

Please note that the risk_level for this API is not a string, but an integer (due to historical reasons).

Sample

{

"file": base64encodedfile,

"country": AZ,

"risk_level": 2,

"client_id": 84536

}

Did this answer your question?