Ir para o conteúdo
Documentação do Endless

Read a brand's sources

POST
/users/{user_id}/brand-source

What a website (its text, the social profiles it links to, its Instagram account) or an Instagram account says about a brand — the material the onboarding extraction reads. brand_source_unreadable when nothing usable came back. Not charged.

Authorization

bearerAuth
AuthorizationBearer <token>

JWT token from authentication

In: header

Path Parameters

user_id*string
Match^user_

Header Parameters

Endless-Api-Version?string

Pin the caller to an API major (1). Omit to accept the current version. A major this deployment cannot serve is refused with 400 unsupported_api_version.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/users/user_abc123/brand-source" \  -H "Content-Type: application/json" \  -d '{    "source": {      "kind": "url",      "value": "http://example.com"    }  }'
{  "pages": [    {      "url": "string",      "title": "string",      "text": "string"    }  ],  "socials": [    {      "platform": "string",      "handle": "string",      "url": "string"    }  ],  "instagram": {    "profile": {      "pk": "string",      "id": "string",      "username": "string",      "full_name": "string",      "biography": "string",      "is_verified": true,      "is_private": true,      "follower_count": 0,      "following_count": 0,      "media_count": 0,      "category": "string",      "external_url": "string",      "profile_pic_url": "string",      "city_name": "string"    },    "posts": [      {        "url": "string",        "caption": "string",        "pinned": true      }    ]  }}