Hello I’m new with Seatable, I’m using the seatble self hosted I followed the API documentation to generate Access token and it was generated succefuly, but When i tried to use the access token to generate the Base Token I’m getting 403:
Access token
import requests
url = “http://example.seatable.com/api2/auth-token/”
payload = “username=XXXX%XXX.fr&password=XXX”
headers = {
“accept”: “application/json”,
“content-type”: “application/x-www-form-urlencoded”
}
response = requests.post(url, data=payload, headers=headers)
access_token = response.json()[“token”]
Base token
url = “http://example.seatable.com/api/v2.1/workspace/1/dtable/test/access-token/”
headers = {
“accept”: “application/json”,
“Authorization”: f"Bearer {access_token}"
}
response = requests.get(url, headers=headers)
print(f"{response.status_code}: {response.text}") → Here Im getting 403: {“detail”:“Authentication credentials were not provided.”}