API / Branding

POST

/identities/{id}/brand/extract

Extract a branding suggestion from a URL or HTML

Authentification : clé API Bearer requise.

Paramètres

NomDansTypeDescription
id*pathstringIdentity ID

Corps JSON

Source URL or raw HTML

NomTypeDescription
htmlstring
urlstring

Exemple curl

curl -X POST https://api.sporee.fr/identities/<id>/brand/extract \
  -H "Authorization: Bearer $SPORE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "html": "<p>Votre compte est prêt.</p>"
  }'

Réponses

StatutDescriptionType
200OKextract_brand.Response
400Bad Requestecho.HTTPError
401Unauthorizedecho.HTTPError

Source machine : openapi.json · opération extractBrand