Adriana Abad - Hi everyone, I'm trying a CURL t...
Hi everyone, I'm trying a CURL to obtain a token but I'm getting an error, could someone help me please ?
7 Replies
curl --location 'https://my_thoughtspot_host/api/rest/2.0/auth/token/full' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'Cookie: JSESSIONID=438c96a7-c5aa-48da-a4fa-d19213f95719; clientId=26b438ea-702b-47a0-8069-e6fc7823cf5b' \
--data-raw '{
"username": "my_username",
"password": "my_password",
"org_id": 1,
"validity_time_in_sec": 86400
}'
Of course, I'm replacing each value correctly. SInce I already try this endopoint:
/api/rest/2.0/auth/session/login
And got 204 No Content
So, I'm putting my credentials correctly.
I'm getting this error when I try to obtain the token:
{"error":{"message":{"debug":{"code":13003,"incident_id_guid":"09a67c36-560d-4c70-9704-b83729a175a2","trace_id_guid":"6183611a-d391-4818-8851-4f56a0e18469","debug":"["Org not found corresponding to the org_identifier: 1"]"}}}}
Can you get the org_id information from searching for the org from the search orgs endpoint? The org_id should not be 1..
Okay, that's how is in the current docs.
Sorry but I didn't uderstand where Can I Know the org_id ?
Do you have org_id?
I don't know, where can I look that ?
Do you have orgs enabled?
If not you can skip org_id
Okay, just did and it worked. Thank you for your help 👏