Avycenna

Complete a cloud vendor's OAuth handshake

Exchanges the authorization code returned by the vendor's consent screen for an access token and stores it. Actual scheduled data-pulling from the vendor's API is a follow-up once real credentials are configured — this endpoint only completes the handshake.

POST
/api/v1/wearables/oauth/{source}/callback

Authorization

HTTPBearer
AuthorizationBearer <token>

In: header

Path Parameters

source*Source

Header Parameters

x-api-key?string|null

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/api/v1/wearables/oauth/string/callback" \  -H "Content-Type: application/json" \  -d '{    "code": "string",    "redirect_uri": "string"  }'
null
{  "detail": [    {      "loc": [        "string"      ],      "msg": "string",      "type": "string"    }  ]}