Passer au contenu

Get Key

Returns a session key (authnKey) to initiate an authentication flow with SPID, CIE, or EIDAS.

Get a authn key to start an authentication flow

Requête

Sécurité
ApiKeyAuth
Chemin
environment_namestringobligatoire

The environment path provided by Namirial during the assessment phase

Exemple:myintegration
Requête
levelinteger

Authentication level. Accepted values: 1, 2, 3.

Par défaut:1
Enum:123
Exemple:level=2
attributesstringobligatoire

Attribute set to request. Accepted values: Base, Full.

Enum:"Base""Full"
Exemple:attributes=Full
spidTypestring

SPID SAML Purpose value. Applies to SPID authentication only.

Enum:"P""LP""PG""PF""PX"
Exemple:spidType=P
curl -i -X GET \
  'https://esp-saas.test.namirialtsp.com/api/secure/myintegration/getKey?level=2&attributes=Full&spidType=P' \
  -H 'Esp-Api-Key: YOUR_API_KEY_HERE'

Réponses

The authn key

Corpstext/plain
string(GetKeyResponse)
Réponse
c1BUQkJ4d3hYUWV6ZEQ4TktlSWV6ZmozVy9HNzNrQlcyRFlvMTB1TTlGKzE3dWNjdHNLV2RUN0pVNTNJQnhsVnNMMWhBS0lucGNxMC9qY0c3U3BWYlc5dktOMXFvVkhyYUIrdDFBd1VBWGM5bERzS1RnVzd1V251R3pWUEpiUmc