Use an app's Oauth provider to generate and store a new token for authentication.
Request
Body Params application/json
{
"application_name": "string",
"state": "string",
"code": "string"
}
Request samples
curl --location --request POST 'https://api.medusa-commerce.com/admin/apps/authorizations' \
--header 'Content-Type: application/json' \
--data-raw '{
"application_name": "string",
"state": "string",
"code": "string"
}'
Responses
application/json {
"apps": {
"id": "example_app",
"display_name": "Example app",
"application_name": "example",
"install_url": "http://example.com",
"uninstall_url": "http://example.com",
"data": {}
}
}
Modified at 2023-10-08 12:50:29