Skip to main content
GET
/
company-info
/
whoami
Returns the company and user associated with the token
curl --request GET \
  --url https://api-dev.narrative.io/company-info/whoami \
  --header 'Authorization: Bearer <token>'
{
  "id": 7,
  "user_id": 100,
  "credit_limit_usd": 1000,
  "check_datashops_credit_limit": false
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Response

200 - application/json

Returns the marketing detail of a specific company.

id
integer
required

Unique identifier of an existing company.

Example:

7

credit_limit_usd
integer
required

The company credit limit (USD)

check_datashops_credit_limit
boolean
required

Whether the buyer's credit limit should be checked for datashops purchases. Relevant to data shop owners only.

user_id
integer

The user id