Operations 1
Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay
Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/microsoft-azure:microsoft-azure-rank-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Microsoft Azure Rank API
version: '1.0'
description: 'Operations tagged Rank across 2 of this provider''s published API definitions: personalizer-client-2022-09-01-preview-openapi-original.yml, personalizer-client-v11-preview3-openapi-original.yml. Each path carries the servers of the definition it was published in.'
servers:
- url: /personalizer
- url: /personalizer/v1.1-preview.3
tags:
- name: Rank
description: Manages ranking operations.
paths:
/rank:
post:
tags:
- Rank
summary: Microsoft Azure Post Rank
description: Submit a Personalizer rank request. Receives a context and a list of actions. Returns which of the provided actions should be used by your application, in rewardActionId.
operationId: microsoftAzureRank
parameters:
- name: api-version
in: query
required: true
description: Client API version.
schema:
type: string
responses:
'201':
description: Created
content:
application/json:
schema:
$ref: '#/components/schemas/RankResponse'
default:
description: Invalid request.
headers:
x-ms-error-code:
description: Error code for specific error that occurred.
schema:
type: string
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
x-ms-examples:
Successful Rank request:
$ref: ./examples/Rank.json
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/RankRequest'
description: A Personalizer Rank request.
required: true
security:
- {}
servers:
- url: /personalizer
components:
schemas:
RankedAction:
description: A ranked action with its resulting probability.
type: object
properties:
id:
description: Id of the action
maxLength: 256
type: string
readOnly: true
probability:
format: float
description: Probability of the action
maximum: 1
minimum: 0
type: number
readOnly: true
ErrorResponse:
description: Used to return an error to the client
required:
- error
type: object
properties:
error:
$ref: '#/components/schemas/PersonalizerError'
RankRequest:
description: Request a set of actions to be ranked by the Personalizer service.
required:
- actions
type: object
properties:
contextFeatures:
description: 'Features of the context used for Personalizer as a
dictionary of dictionaries. This is determined by your application, and
typically includes features about the current user, their
device, profile information, aggregated data about time and date, etc.
Features should not include personally identifiable information (PII),
unique UserIDs, or precise timestamps.'
type: array
items: {}
actions:
description: 'The set of actions the Personalizer service can pick from.
The set should not contain more than 50 actions.
The order of the actions does not affect the rank result but the order
should match the sequence your application would have used to display them.
The first item in the array will be used as Baseline item in Offline Evaluations.'
type: array
items:
$ref: '#/components/schemas/RankableAction'
excludedActions:
description: 'The set of action ids to exclude from ranking.
Personalizer will consider the first non-excluded item in the array as the Baseline action when performing Offline Evaluations.'
type: array
items:
type: string
eventId:
description: 'Optionally pass an eventId that uniquely identifies this Rank event.
If null, the service generates a unique eventId. The eventId will be used for
associating this request with its reward, as well as seeding the pseudo-random
generator when making a Personalizer call.'
maxLength: 256
type: string
deferActivation:
description: 'Send false if it is certain the rewardActionId in rank results will be shown to the user, therefore
Personalizer will expect a Reward call, otherwise it will assign the default
Reward to the event. Send true if it is possible the user will not see the action specified in the rank results,
(e.g. because the page is rendering later, or the Rank results may be overridden by code further downstream).
You must call the Activate Event API if the event output is shown to users, otherwise Rewards will be ignored.'
default: false
type: boolean
PersonalizerError:
description: The error object.
required:
- code
- message
type: object
properties:
code:
description: Error Codes returned by Personalizer
enum:
- BadRequest
- InvalidServiceConfiguration
- InvalidLearningModeServiceConfiguration
- InvalidPolicyConfiguration
- InvalidPolicyContract
- InvalidEvaluationContract
- InvalidContract
- DuplicateCustomPolicyNames
- NoLogsExistInDateRange
- LogsSizeExceedAllowedLimit
- InvalidRewardRequest
- InvalidEventIdToActivate
- InvalidRankRequest
- InvalidExportLogsRequest
- InvalidRequest
- InvalidSasUri
- InvalidModelMetadata
- ApprenticeModeNeverTurnedOn
- MissingAppId
- InvalidRewardWaitTime
- InvalidLogRetentionDays
- InvalidMultiSlotApiAccess
- PayloadSizeExceeded
- InvalidModelImportSignature
- InvalidModelImportFormat
- FeatureImportanceAlreadyExists
- EvaluationAlreadyExists
- InvalidModelRetrainDays
- InvalidApiAccess
- ModelFileAccessDenied
- ProblemTypeIncompatibleWithAutoOptimization
- ResourceNotFound
- FrontEndNotFound
- EvaluationNotFound
- FeatureImportanceNotFound
- LearningSettingsNotFound
- EvaluationModelNotFound
- LogsPropertiesNotFound
- RequestTimeout
- ModelRankingError
- InternalServerError
- ModelDownloadFailed
- RankNullResponse
- UpdateConfigurationFailed
- InferenceModelUpdateFailed
- ModelResetFailed
- ModelPublishFailed
- ModelMetadataUpdateFailed
- EvaluationsGetListFailed
- OperationNotAllowed
type: string
x-ms-enum:
name: PersonalizerErrorCode
modelAsString: true
values:
- value: BadRequest
description: Request could not be understood by the server.
- value: InvalidServiceConfiguration
description: Invalid service configuration.
- value: InvalidLearningModeServiceConfiguration
description: Updating defaultReward, rewardWaitTime and rewardAggregation when changing learning mode from Online to Apprentice mode and vice versa is not allowed. Make the mode change and then change the additional settings with an additional API call.
- value: InvalidPolicyConfiguration
description: Invalid policy configuration.
- value: InvalidPolicyContract
description: Invalid policy contract.
- value: InvalidEvaluationContract
description: Invalid evaluation contract.
- value: InvalidContract
description: Invalid contract.
- value: DuplicateCustomPolicyNames
description: Custom policy names should be unique.
- value: NoLogsExistInDateRange
description: No logs exist in date range.
- value: LogsSizeExceedAllowedLimit
description: Total size of logs exceed allowed limit.
- value: InvalidRewardRequest
description: Invalid reward request.
- value: InvalidEventIdToActivate
description: Invalid activate event request.
- value: InvalidRankRequest
description: Invalid request.
- value: InvalidExportLogsRequest
description: Invalid request.
- value: InvalidRequest
description: Invalid request.
- value: InvalidSasUri
description: SAS Uri must be the Uri to a container that has write permissions; Or the date in SAS Uri is not in the format of yyyy-mm-ddThh:mm:ssZ.
- value: InvalidModelMetadata
description: Invalid model metadata.
- value: ApprenticeModeNeverTurnedOn
description: Apprentice mode never turned on.
- value: MissingAppId
description: AppId is missing in the header.
- value: InvalidRewardWaitTime
description: Reward wait time should be either 10 minutes or 4 hours or 12 hours or 24 hours
- value: InvalidLogRetentionDays
description: Log Retention Days must be -1 to store indefinitely or must be at least reward wait time plus 1 day (rounded up)
- value: InvalidMultiSlotApiAccess
description: Multi-slot feature is currently disabled. Please follow multi-slot Personalizer documentation to update your loop settings to enable multi-slot functionality.
- value: PayloadSizeExceeded
description: Exceeds maximum allowed payload size.
- value: InvalidModelImportSignature
description: Given model file is not signed or does not have a valid signature.
- value: InvalidModelImportFormat
description: Given model file format is invalid.
- value: FeatureImportanceAlreadyExists
description: Feature importance with id {0} already exists.
- value: EvaluationAlreadyExists
description: Evaluation with id {0} already exists.
- value: InvalidModelRetrainDays
description: Model retrain days must be between 0 and the number of log retention days.
- value: InvalidApiAccess
description: Api is currently disabled for the instance.
- value: ModelFileAccessDenied
description: Key vault Key used for customer managed key cannot be accessed.
- value: ProblemTypeIncompatibleWithAutoOptimization
description: Auto-optimization is not compatible with multi-slot personalization.
- value: ResourceNotFound
description: Requested resource does not exist on the server.
- value: FrontEndNotFound
description: Front end not found.
- value: EvaluationNotFound
description: Offline Evaluation not found.
- value: FeatureImportanceNotFound
description: Feature importance not found.
- value: LearningSettingsNotFound
description: Learning Settings not found in evaluation.
- value: EvaluationModelNotFound
description: Model not found in evaluation.
- value: LogsPropertiesNotFound
description: Log properties not found.
- value: RequestTimeout
description: The task was canceled.
- value: ModelRankingError
description: Error while ranking actions using model. Please verify the learning settings are valid.
- value: InternalServerError
description: A generic error has occurred on the server.
- value: ModelDownloadFailed
description: Failed to download model.
- value: RankNullResponse
description: Rank call returned null response.
- value: UpdateConfigurationFailed
description: Failed to update configuration.
- value: InferenceModelUpdateFailed
description: Failed to update inference model.
- value: ModelResetFailed
description: Model reset failed.
- value: ModelPublishFailed
description: Model publish failed.
- value: ModelMetadataUpdateFailed
description: Model metadata update failed.
- value: EvaluationsGetListFailed
description: Failed to get evaluations list.
- value: OperationNotAllowed
description: This operation is not allowed at this time.
message:
description: A message explaining the error reported by the service.
type: string
target:
description: Error source element.
type: string
readOnly: true
details:
description: An array of details about specific errors that led to this reported error.
type: array
items:
$ref: '#/components/schemas/PersonalizerError'
readOnly: true
innerError:
$ref: '#/components/schemas/InternalError'
RankableAction:
description: An action with its associated features used for ranking.
required:
- features
- id
type: object
properties:
id:
description: Id of the action.
maxLength: 256
type: string
features:
description: List of dictionaries containing features.
type: array
items: {}
InternalError:
description: An object containing more specific information than the parent object about the error.
type: object
properties:
code:
description: Detailed error code.
type: string
innererror:
$ref: '#/components/schemas/InternalError'
RankResponse:
description: Returns which action to use as rewardActionId, and additional information about each action as a result of a Rank request.
type: object
properties:
ranking:
description: The calculated ranking for the current request.
type: array
items:
$ref: '#/components/schemas/RankedAction'
readOnly: true
eventId:
description: The eventId for the round trip from request to response.
maxLength: 256
type: string
readOnly: true
rewardActionId:
description: 'The action chosen by the Personalizer service.
This is the action your application should display, and for which to report the reward.
This might not be the first found in ''ranking''.'
maxLength: 256
type: string
readOnly: true
RankRequest_2:
description: Request a set of actions to be ranked by the Personalizer service.
required:
- actions
type: object
properties:
contextFeatures:
description: 'Features of the context used for Personalizer as a
dictionary of dictionaries. This is determined by your application, and
typically includes features about the current user, their
device, profile information, aggregated data about time and date, etc.
Features should not include personally identifiable information (PII),
unique UserIDs, or precise timestamps.'
type: array
items:
type: object
actions:
description: 'The set of actions the Personalizer service can pick from.
The set should not contain more than 50 actions.
The order of the actions does not affect the rank result but the order
should match the sequence your application would have used to display them.
The first item in the array will be used as Baseline item in Offline Evaluations.'
type: array
items:
$ref: '#/components/schemas/RankableAction_2'
excludedActions:
description: 'The set of action ids to exclude from ranking.
Personalizer will consider the first non-excluded item in the array as the Baseline action when performing Offline Evaluations.'
type: array
items:
type: string
eventId:
description: 'Optionally pass an eventId that uniquely identifies this Rank event.
If null, the service generates a unique eventId. The eventId will be used for
associating this request with its reward, as well as seeding the pseudo-random
generator when making a Personalizer call.'
maxLength: 256
type: string
deferActivation:
description: 'Send false if it is certain the rewardActionId in rank results will be shown to the user, therefore
Personalizer will expect a Reward call, otherwise it will assign the default
Reward to the event. Send true if it is possible the user will not see the action specified in the rank results,
(e.g. because the page is rendering later, or the Rank results may be overridden by code further downstream).
You must call the Activate Event API if the event output is shown to users, otherwise Rewards will be ignored.'
default: false
type: boolean
PersonalizerError_2:
description: The error object.
required:
- code
- message
type: object
properties:
code:
description: Error Codes returned by Personalizer
enum:
- BadRequest
- InvalidServiceConfiguration
- InvalidLearningModeServiceConfiguration
- InvalidPolicyConfiguration
- InvalidPolicyContract
- InvalidEvaluationContract
- DuplicateCustomPolicyNames
- NoLogsExistInDateRange
- LogsSizeExceedAllowedLimit
- InvalidRewardRequest
- InvalidEventIdToActivate
- InvalidRankRequest
- InvalidExportLogsRequest
- InvalidRequest
- InvalidContainer
- InvalidModelMetadata
- ApprenticeModeNeverTurnedOn
- MissingAppId
- InvalidRewardWaitTime
- InvalidLogRetentionDays
- InvalidMultiSlotApiAccess
- PayloadSizeExceeded
- InvalidModelImportSignature
- InvalidModelImportFormat
- InvalidApiAccess
- ModelFileAccessDenied
- ProblemTypeIncompatibleWithAutoOptimization
- ResourceNotFound
- FrontEndNotFound
- EvaluationNotFound
- LearningSettingsNotFound
- EvaluationModelNotFound
- LogsPropertiesNotFound
- ModelRankingError
- InternalServerError
- RankNullResponse
- UpdateConfigurationFailed
- ModelResetFailed
- ModelPublishFailed
- ModelMetadataUpdateFailed
- OperationNotAllowed
type: string
x-ms-enum:
name: PersonalizerErrorCode
modelAsString: true
values:
- value: BadRequest
description: Request could not be understood by the server.
- value: InvalidServiceConfiguration
description: Invalid service configuration.
- value: InvalidLearningModeServiceConfiguration
description: Updating defaultReward, rewardWaitTime and rewardAggregation when changing learning mode from Online to Apprentice mode and vice versa is not allowed. Make the mode change and then change the additional settings with an additional API call.
- value: InvalidPolicyConfiguration
description: Invalid policy configuration.
- value: InvalidPolicyContract
description: Invalid policy contract.
- value: InvalidEvaluationContract
description: Invalid evaluation contract.
- value: DuplicateCustomPolicyNames
description: Custom policy names should be unique.
- value: NoLogsExistInDateRange
description: No logs exist in date range.
- value: LogsSizeExceedAllowedLimit
description: Total size of logs exceed allowed limit.
- value: InvalidRewardRequest
description: Invalid reward request.
- value: InvalidEventIdToActivate
description: Invalid activate event request.
- value: InvalidRankRequest
description: Invalid request.
- value: InvalidExportLogsRequest
description: Invalid request.
- value: InvalidRequest
description: Invalid request.
- value: InvalidContainer
description: SAS Uri must be the Uri to a container that has write permissions.
- value: InvalidModelMetadata
description: Invalid model metadata.
- value: ApprenticeModeNeverTurnedOn
description: Apprentice mode never turned on.
- value: MissingAppId
description: AppId is missing in the header.
- value: InvalidRewardWaitTime
description: Reward wait time should be either 10 minutes or 4 hours or 12 hours or 24 hours
- value: InvalidLogRetentionDays
description: Log Retention Days must be -1 to store indefinitely or must be at least reward wait time plus 1 day (rounded up)
- value: InvalidMultiSlotApiAccess
description: Multi-slot feature is currently disabled. Please follow multi-slot Personalizer documentation to update your loop settings to enable multi-slot functionality.
- value: PayloadSizeExceeded
description: Exceeds maximum allowed payload size.
- value: InvalidModelImportSignature
description: Given model file is not signed or does not have a valid signature.
- value: InvalidModelImportFormat
description: Given model file format is invalid.
- value: InvalidApiAccess
description: Api is currently disabled for the instance.
- value: ModelFileAccessDenied
description: Key vault Key used for customer managed key cannot be accessed.
- value: ProblemTypeIncompatibleWithAutoOptimization
description: Auto-optimization is not compatible with multi-slot personalization.
- value: ResourceNotFound
description: Requested resource does not exist on the server.
- value: FrontEndNotFound
description: Front end not found.
- value: EvaluationNotFound
description: Offline Evaluation not found.
- value: LearningSettingsNotFound
description: Learning Settings not found in evaluation.
- value: EvaluationModelNotFound
description: Model not found in evaluation.
- value: LogsPropertiesNotFound
description: Log properties not found.
- value: ModelRankingError
description: Error while ranking actions using model. Please verify the learning settings are valid.
- value: InternalServerError
description: A generic error has occurred on the server.
- value: RankNullResponse
description: Rank call returned null response.
- value: UpdateConfigurationFailed
description: Failed to update configuration.
- value: ModelResetFailed
description: Model reset failed.
- value: ModelPublishFailed
description: Model publish failed.
- value: ModelMetadataUpdateFailed
description: Model metadata update failed.
- value: OperationNotAllowed
description: This operation is not allowed at this time.
message:
description: A message explaining the error reported by the service.
type: string
target:
description: Error source element.
type: string
details:
description: An array of details about specific errors that led to this reported error.
type: array
items:
$ref: '#/components/schemas/PersonalizerError_2'
innerError:
$ref: '#/components/schemas/InternalError'
RankableAction_2:
description: An action with its associated features used for ranking.
required:
- id
- features
type: object
properties:
id:
description: Id of the action.
maxLength: 256
type: string
features:
description: List of dictionaries containing features.
type: array
items:
type: object
securitySchemes:
apim_key:
type: apiKey
name: Ocp-Apim-Subscription-Key
in: header
x-refined-from:
- personalizer-client-2022-09-01-preview-openapi-original.yml
- personalizer-client-v11-preview3-openapi-original.yml
x-ms-parameterized-host:
hostTemplate: '{endpoint}'
useSchemePrefix: false
parameters:
- $ref: '#/components/parameters/Endpoint'