If you don’t mind using all Python code (and skipping curl), this is some sample code I put together to test the API:
----------------------------------------------
# 2021-02-02 v0.01 runs under Python 3.9 (should work with 3.5+)
# from airtable import Airtable # you might need to include this (I didn't have to)
from airtable.auth import AirtableAuth
import requests
import json
API_KEY = 'keyABCDEF01234567' # your API key
BASE_KEY = 'appABCDEF000111' # base key with the tables to list
CLIENT_SECRET = "pythonorg-000123abcdef" # sample secret for 'python org' company
auth_info = AirtableAuth( API_KEY )
meta_hdr = {"X-Airtable-Client-Secret": CLIENT_SECRET }
resp = requests.get( "https://api.airtable.com/v0/meta/bases/"+ BASE_KEY +"/tables",
auth=auth_info, headers=meta_hdr)
table_dict = json.loads( resp.text )
for tbl in table_dict[ 'tables' ]:
print( tbl['name'] )
----------------------------------------------
I hope that helps to get you started.
jd