--header
: This flag is used to include headers in the request. The most commonly used headers in fabric APIs are:
x-fabric-tenant-id
: This is a custom header used by the API to identify the tenant making the request. You can find the tenant-id in Copilot.Content-Type: application/json
: This tells the server that the data being sent in the request is in JSON format.Authorization: Bearer
: This is the authorization token used to authenticate the request. You must pass the access token generated from the system app.x-fabric-channel-id
: This is a custom header, used to identify the channel through which the request is being made. This is primarily used for a multichannel use case. Usually, the default value is 12 (US).Authorization: Bearer
, replace Bearer <token> with the access token you generated from Getting Started with fabric APIs section.x-fabric-channel-id
, replace <tenant-id> with the tenant-id you obtained from Getting the Account ID section.