Spedizione messaggi via API

Pianificazione di una notifica da servizi

Le applicazioni che prevedono la spedizione di notifiche tramite l'AppIO possono integrarsi tramite le API di backoffice esposte da AppIO.

Send a new message.

post

Send a message through the service template.

The service_instance parameter identifies the IO service through which the message is sent, and it's a configuration parameter provided by the service administrator. The placeholder list is also provided by the service administrator, and the API user has to provide the values.

Upon receiving a call to this endpoint, GovIO builds the actual message to be sent to the IO services. In the process, the placeholders values are substituted in the message body and message subject by a template engine.
A 201 response status denotes that the final message is built and scheduled by GovIO for the expedition to the IO services.

Authorizations
GovHub-Consumer-PrincipalstringRequired
Query parameters
service_instanceinteger · int64Required

Govio Service Instance Id.

Example: 1
idempotency_keystring · uuidRequired
Body
taxcodestring · min: 16 · max: 16Required

The fiscal code of the receiver, all upper case.

Example: PCRMJV76P12B782ZPattern: [A-Z]{6}[0-9LMNPQRSTUV]{2}[ABCDEHLMPRST][0-9LMNPQRSTUV]{2}[A-Z][0-9LMNPQRSTUV]{3}[A-Z]
emailstring · email · max: 255Optional

Default address for notifying the recipient of the message in case no address for the related channel is set in his profile.

scheduled_expedition_datestring · date-timeRequired

The date when this message has to be sent to the citizien.

due_datestring · date-timeOptional

The expiration date for the message subject. When set, the IO app shows an expiration date for this message.

Responses
post
/messages

La richiesta al servizio di pianificazione di una nuova notifica prevede il parametro idempotency_key che consente alla piattaforma di riconoscere eventuali richieste duplicate.

Per la consultazione dei messaggi inviati sono disponibili le risorse REST di ricerca e lettura.

List Govio Messages

get

Read and Filter the Govio Messages.

Authorizations
GovHub-Consumer-PrincipalstringRequired
Query parameters
scheduled_expedition_date_fromstring · date-timeOptional
scheduled_expedition_date_tostring · date-timeOptional
expedition_date_fromstring · date-timeOptional
expedition_date_tostring · date-timeOptional
tax_codestring · min: 1 · max: 99999999OptionalPattern: [\s\S]*
service_idinteger · int64 · max: 9223372036854776000Optional

Service identifier.

Example: 1
organization_idinteger · int64 · max: 9223372036854776000Optional

Organization identifier.

Example: 1
service_qstring · max: 255OptionalExample: user_1Pattern: ^[^\u0000]*$
organization_qstring · max: 255OptionalExample: user_1Pattern: ^[^\u0000]*$
statusstring · enumOptional

Filters by message state.

Possible values:
sortstring · enumRequired

Sorting field.

Default: idPossible values:
sort_directionstring · enumRequired

Direction Sorting field.

Default: descPossible values:
limitinteger · int32 · min: 1 · max: 100Optional

Max number of provided items.

offsetinteger · int64 · max: 9223372036854776000Optional

offset (zero-based) of indexed results.

Default: 0
Responses
chevron-right
200

Successful operation.

application/hal+json
and
get
/messages

Reads a Govio Message

get

Read the message with the provided id.

Authorizations
GovHub-Consumer-PrincipalstringRequired
Path parameters
idinteger · int64Required

GovIO Message Id.

Example: 1
Responses
chevron-right
200

Successful operation.

application/hal+json
taxcodestring · min: 16 · max: 16Required

The fiscal code of the receiver, all upper case.

Example: PCRMJV76P12B782ZPattern: [A-Z]{6}[0-9LMNPQRSTUV]{2}[ABCDEHLMPRST][0-9LMNPQRSTUV]{2}[A-Z][0-9LMNPQRSTUV]{3}[A-Z]
emailstring · email · max: 255Optional

Default address for notifying the recipient of the message in case no address for the related channel is set in his profile.

scheduled_expedition_datestring · date-timeRequired

The date when this message has to be sent to the citizien.

due_datestring · date-timeOptional

The expiration date for the message subject. When set, the IO app shows an expiration date for this message.

idinteger · int64Required

GovIO Message Id.

Example: 1
statusstring · enumRequiredPossible values:
status_detailstring · max: 2000000OptionalPattern: [\s\S]*
appio_message_idstring · max: 1024OptionalPattern: .*
creation_datestring · date-timeRequired
expedition_datestring · date-timeOptional
last_update_statusstring · date-timeOptional
subjectstring · min: 10 · max: 120RequiredExample: Lorem ipsum
markdownstring · min: 80 · max: 10000RequiredExample: # Lorem ipsum dolor sit amet Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
sender_idinteger · int64 · max: 9223372036854776000Required

User identifier.

Example: 1
service_instance_idinteger · int64Required

Govio Service Instance Id.

Example: 1
get
/messages/{id}

Last updated