I am developing some workflows using the REST API. I am successfully getting a JWT and using it for some studio APIs but /api/tasks… in particular doesn’t seem to accept the JWT and I can’t figure out why.
curl -X 'GET' \
'http://studio.local.edly.io/api/content-staging/v1/clipboard/' \
-H 'accept: application/json' \
-H 'Authorization: JWT eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiAib3BlbmVkeCIsICJleHAiOiAxNzA2MDI3NTI4LCAiZ3JhbnRfdHlwZSI6ICJjbGllbnQtY3JlZGVudGlhbHMiLCAiaWF0IjogMTcwNjAyMzkyOCwgImlzcyI6ICJodHRwOi8vbG9jYWwuZWRseS5pby9vYXV0aDIiLCAicHJlZmVycmVkX3VzZXJuYW1lIjogImt1cnQiLCAic2NvcGVzIjogWyJyZWFkIiwgIndyaXRlIiwgImVtYWlsIiwgInByb2ZpbGUiXSwgInZlcnNpb24iOiAiMS4yLjAiLCAic3ViIjogIjhkZTIyYTQ4ZDcxYzNlYTVjNGZiYjQ1YTZkYjFjZDc4IiwgImZpbHRlcnMiOiBbXSwgImlzX3Jlc3RyaWN0ZWQiOiBmYWxzZSwgImVtYWlsX3ZlcmlmaWVkIjogdHJ1ZSwgImVtYWlsIjogImt1cnRAcmVkaXMuY29tIiwgIm5hbWUiOiAiIiwgImZhbWlseV9uYW1lIjogIiIsICJnaXZlbl9uYW1lIjogIiIsICJhZG1pbmlzdHJhdG9yIjogdHJ1ZSwgInN1cGVydXNlciI6IHRydWV9.oA2X5brThW50G63QaGsD0xGbskAOTqnKc00G3wYZXFk'
{"content":null,"source_usage_key":"","source_context_title":"","source_edit_url":""}%
curl -X 'GET' \
'http://studio.local.edly.io/api/tasks/v0/artifacts/?page=1&page_size=20' \
-H 'accept: application/json' \
-H 'Authorization: JWT eyJhbGciOiJIUzI1NiJ9.eyJhdWQiOiAib3BlbmVkeCIsICJleHAiOiAxNzA2MDI3NTI4LCAiZ3JhbnRfdHlwZSI6ICJjbGllbnQtY3JlZGVudGlhbHMiLCAiaWF0IjogMTcwNjAyMzkyOCwgImlzcyI6ICJodHRwOi8vbG9jYWwuZWRseS5pby9vYXV0aDIiLCAicHJlZmVycmVkX3VzZXJuYW1lIjogImt1cnQiLCAic2NvcGVzIjogWyJyZWFkIiwgIndyaXRlIiwgImVtYWlsIiwgInByb2ZpbGUiXSwgInZlcnNpb24iOiAiMS4yLjAiLCAic3ViIjogIjhkZTIyYTQ4ZDcxYzNlYTVjNGZiYjQ1YTZkYjFjZDc4IiwgImZpbHRlcnMiOiBbXSwgImlzX3Jlc3RyaWN0ZWQiOiBmYWxzZSwgImVtYWlsX3ZlcmlmaWVkIjogdHJ1ZSwgImVtYWlsIjogImt1cnRAcmVkaXMuY29tIiwgIm5hbWUiOiAiIiwgImZhbWlseV9uYW1lIjogIiIsICJnaXZlbl9uYW1lIjogIiIsICJhZG1pbmlzdHJhdG9yIjogdHJ1ZSwgInN1cGVydXNlciI6IHRydWV9.oA2X5brThW50G63QaGsD0xGbskAOTqnKc00G3wYZXFk'
{"detail":"Authentication credentials were not provided."}