LogoLogo
v2.4
v2.4
  • 🏠Guida tecnica
  • 🕗Changelog
  • 🔢Setup iniziale
    • Adesione tramite l'Area Riservata
    • Iscrizione al Developer Portal
  • Funzionalità
    • 📦Pubblicare un servizio
      • Creare un servizio
      • Provare un servizio in test
      • Dati obbligatori
        • Attributi
        • Service Metadata
      • Importare servizi nell'Area Riservata
    • ✉️Inviare un messaggio
      • Messaggi di test
      • 📎Aggiungere allegati (Premium)
        • Specifiche degli endpoint di recupero degli allegati
  • 📐API
    • OpenAPI
    • API Messaggi
      • Get a User Profile using POST
      • Submit a Message passing the user fiscal_code in the request body
      • Get Message
      • Get Subscriptions Feed
      • ⚠️Get a User Profile
      • ⚠️Submit a Message passing the user fiscal_code as path parameter
    • API Servizi
      • Get User Services
      • Get Service
      • Update Service
      • Regenerate Service Key
      • Upload service logo
      • Upload organization logo
      • Create Service
    • Errori comuni
    • Specifiche API
  • 🔑Abilitazioni
    • Test con Codici Fiscali reali
    • Test invio avvisi pagoPA
    • Invio messaggi massivo
    • Subscription feed
    • Gestione dei servizi
    • Funzionalità Premium
  • Risorse Utili
    • ❓Supporto agli Enti
    • 📘Glossario
Powered by GitBook
On this page
  1. API
  2. API Messaggi

Get a User Profile using POST

PreviousAPI MessaggiNextSubmit a Message passing the user fiscal_code in the request body

Last updated 2 years ago

Descrizione

API che permette di controllare che il cittadino identificato tramite Codice Fiscale sia iscritto a IO e che il servizio possa inviare comunicazioni al cittadino stesso.

Il Codice Fiscale del cittadino andrà inserito nel body della post request.

La risposta è ritenuta positiva se sono verificate entrambe queste condizioni:

  1. lo status code della risposta è 200

  2. nel body di risposta il campo sender_allowed=true

Esempi

### REQUEST
curl --location --request POST 'https://api.io.pagopa.it/api/v1/profiles' \
--header 'Content-Type: application/json' \
--header 'Ocp-Apim-Subscription-Key: __YOUR_API_KEY__' \
--data-raw '{
"fiscal_code": "AAAAAA00A00A000A"
}'
### RESPONSE
{
"sender_allowed": true
}

Risorse utili

📐
https://developer.io.italia.it/openapi.html#operation/getProfileByPOST
  • Descrizione
  • POSTGet a User Profile using POST
  • Esempi
  • Risorse utili

Get a User Profile using POST

post

Returns the preferences for the user identified by the fiscal code provided in the request body. The field sender_allowed is set fo false in case the service which is calling the API has been disabled by the user.

Authorizations
Body
fiscal_codestring · FiscalCodeRequired

User's fiscal code.

Example: SPNDNL80R13C555X
Responses
200
Found.
application/json
401
Unauthorized
403
Forbidden.
404
No user found for the provided fiscal code.
application/json
429
Too many requests
post
POST /api/v1/profiles HTTP/1.1
Host: api.io.pagopa.it
Ocp-Apim-Subscription-Key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 34

{
  "fiscal_code": "SPNDNL80R13C555X"
}
{
  "sender_allowed": true,
  "preferred_languages": [
    "it_IT"
  ]
}