LogoLogo
v4.0
v4.0
  • 🏠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
      • Revisione del servizio
      • Visibilità del servizio
      • Importare servizi nell'Area Riservata
      • Dati obbligatori
        • Attributi
        • Service Metadata
      • Informazioni sensibili
      • Stato del servizio
      • Chiave manage
    • ✉️Inviare un messaggio
      • Messaggi di test
      • 📎Aggiungere allegati (Premium)
        • Specifiche degli endpoint di recupero degli allegati
  • 📐API
    • 📐OpenAPI
    • API Servizi
      • Manage Service: Get
      • Manage Service: Get keys
      • Manage Service: Get User Services
      • Manage Service: Create
      • Manage Service: Delete
      • Manage Service: Update
      • Manage Service: Request Review
      • Manage Service: Release
      • Manage Service: Get Released
      • Manage Service: Unpublish
      • Manage Service: Regenerate api key
      • Manage Service: Upload service logo
      • Upload organization logo
    • 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
    • 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

PreviousGet Subscriptions FeedNextSubmit a Message passing the user fiscal_code as path parameter

Attenzione: la seguente API sarà a breve deprecata, pertanto se ne sconsiglia l’uso. Utilizzare Get a User Profile using POST

Descrizione

Questa API permette di controllare che il cittadino identificato tramite codice fiscale sia iscritto ad IO, e che il servizio possa inviare comunicazioni al cittadino stesso.

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 GET 'https://api.io.pagopa.it/api/v1/profiles/AAAAAA00A00A000A' \
--header 'Ocp-Apim-Subscription-Key: __YOUR_API_KEY__'
### RESPONSE
{
"sender_allowed": true
}

Risorse utili

📐
⚠️
https://developer.io.italia.it/openapi.html#operation/getProfile

Get a User Profile

get

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

Authorizations
Path parameters
fiscal_codeanyRequired

The fiscal code of the user, all upper case.

Responses
200
Found.
application/json
401
Unauthorized
403
Forbidden.
404
No user found for the provided fiscal code.
application/json
429
Too many requests
get
GET /api/v1/profiles/{fiscal_code} HTTP/1.1
Host: api.io.pagopa.it
Ocp-Apim-Subscription-Key: YOUR_API_KEY
Accept: */*
{
  "sender_allowed": true,
  "preferred_languages": [
    "it_IT"
  ]
}
  • Descrizione
  • GETGet a User Profile
  • Esempi
  • Risorse utili