Aller au contenu
Sur cette page

Mobile Linking

App Link / Universal Link association files and the OAuth callback fallback

GET /.well-known/apple-app-site-association

Declares that the iOS app may handle /mobile/oauth2/callback on this host (Universal Links). Served as application/json without a file extension. Team ID below is synthetic.

Réponses

Statut Description
200 Apple App Site Association document

Exemple de requête

curl -X GET "https://app.encryptinvoice.com/.well-known/apple-app-site-association" \
  -H "Authorization: Bearer {{access_token}}" \
  -H "X-Organization-Id: {{organization_id}}" \
  -H "Accept: application/json"
GET /.well-known/assetlinks.json

Declares that the Android app (com.encryptinvoice.mobile) may handle HTTPS links on this host — required so /mobile/oauth2/callback opens in the app. Values come from per-environment config; fingerprints below are synthetic.

Réponses

Statut Description
200 Asset links statement list

Exemple de requête

curl -X GET "https://app.encryptinvoice.com/.well-known/assetlinks.json" \
  -H "Authorization: Bearer {{access_token}}" \
  -H "X-Organization-Id: {{organization_id}}" \
  -H "Accept: application/json"

Browser fallback page for the mobile OAuth callback

GET /mobile/oauth2/callback

Nécessite une authentification (jeton Bearer) et l’en-tête X-Organization-Id.

On-device this HTTPS URL is claimed by the app (App Link / Universal Link) and never reaches the server. When opened in a plain browser (desktop, or link not claimed), this page forwards the OAuth response query string to the app's custom scheme (com.encryptinvoice.mobile://oauth2redirect).

Paramètres

Nom Emplacement Type Requis Description
code query string non Authorization code from /oauth/authorize.
state query string non

Réponses

Statut Description
200 HTML page that immediately bounces to the custom scheme with the same query string.

Exemple de requête

curl -X GET "https://app.encryptinvoice.com/mobile/oauth2/callback" \
  -H "Authorization: Bearer {{access_token}}" \
  -H "X-Organization-Id: {{organization_id}}" \
  -H "Accept: application/json"

Nous utilisons des cookies et des analyses respectueuses de la vie privée

Nous utilisons des cookies essentiels pour l'authentification et des analyses respectueuses de la vie privée (auto-hébergées, respectent Do Not Track). Aucun suivi publicitaire ou tiers. En savoir plus dans notre Politique de confidentialité