Microsoft Azure OAuth Tokens API

The OAuth Tokens API from Microsoft Azure, for oauth tokens.

GitHub OpenAPI
Business capability
Identity & Access Management BC-620.20

Operations 4

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

GET /oauth/tokens List OAuth tokens for parties · Microsoft Azure Get Oauth Tokens #
Ask an LLM
“Which OAuth tokens are stored for a party in my Data Manager for Agriculture instance?”
“Can I list only the tokens that are still valid for a given OAuth provider?”
Tell an agent
List OAuth tokens for party {partyIds}.
Show tokens from provider {authProviderIds} where valid is {isValid}.
GET /oauth/tokens/remove/{jobId} Check an OAuth token removal job · Microsoft Azure Get Oauth Tokens Remove Jobid #
Ask an LLM
“Has my OAuth token removal job finished?”
“What's the status of a cascade delete job for a token?”
Tell an agent
Get the OAuth token removal job {jobId}.
Check progress of token delete job {jobId}.
PUT /oauth/tokens/remove/{jobId} Start a job to remove a party's OAuth token · Microsoft Azure Put Oauth Tokens Remove Jobid #
Ask an LLM
“How do I revoke and remove a party's OAuth token for a provider?”
“Can I delete a stored OAuth token along with its dependent data?”
Tell an agent destructive · confirm first
Start removal job {jobId} for party {partyId}'s token from provider {oauthProviderId}.
Remove the {oauthProviderId} OAuth token of {partyId} as job {jobId}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • 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.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/microsoft-azure:microsoft-azure-oauth-tokens-api"
All apis
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.

Get an API 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 Specification

microsoft-azure-oauth-tokens-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Microsoft Azure Azure AgFoodPlatform Data Plane Service O…
  description: APIs documentation for Azure AgPlatform DataPlane Service.
  version: 2022-11-01-preview
security:
- Bearer: []
tags:
- name: OAuth Tokens
paths:
  /oauth/tokens:
    get:
      tags:
      - OAuth Tokens
      description: Returns a list of OAuthToken documents.
      operationId: microsoftAzureOauthtokensList
      parameters:
      - in: query
        name: authProviderIds
        description: Name of AuthProvider.
        style: form
        explode: true
        schema:
          type: array
          items:
            type: string
      - in: query
        name: partyIds
        description: List of parties.
        style: form
        explode: true
        schema:
          type: array
          items:
            type: string
      - in: query
        name: isValid
        description: If the token object is valid.
        schema:
          type: boolean
      - in: query
        name: minCreatedDateTime
        description: Minimum creation date of resource (inclusive).
        schema:
          type: string
          format: date-time
      - in: query
        name: maxCreatedDateTime
        description: Maximum creation date of resource (inclusive).
        schema:
          type: string
          format: date-time
      - in: query
        name: minLastModifiedDateTime
        description: Minimum last modified date of resource (inclusive).
        schema:
          type: string
          format: date-time
      - in: query
        name: maxLastModifiedDateTime
        description: Maximum last modified date of resource (inclusive).
        schema:
          type: string
          format: date-time
      - in: query
        name: maxPageSize
        description: 'Maximum number of items needed (inclusive).

          Minimum = 10, Maximum = 1000, Default value = 50.'
        schema:
          type: integer
          format: int32
          default: 50
          maximum: 1000
          minimum: 10
      - in: query
        name: skipToken
        description: Skip token for getting next set of results.
        schema:
          type: string
      - in: query
        name: api-version
        description: The requested API version
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OAuthTokenListResponse'
        default:
          description: Error
          headers:
            x-ms-error-code:
              x-ms-client-name: ErrorCode
              schema:
                type: string
          x-ms-error-response: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-pageable:
        nextLinkName: nextLink
      x-ms-examples:
        OAuthTokens_List:
          $ref: ./examples/OAuthTokens_List.json
      summary: Microsoft Azure Get Oauth Tokens
  /oauth/tokens/:connect:
    post:
      tags:
      - OAuth Tokens
      description: Returns Connection link needed in the OAuth flow.
      operationId: microsoftAzureOauthtokensGetoauthconnectionlink
      parameters:
      - in: query
        name: api-version
        description: The requested API version
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: string
        default:
          description: Error
          headers:
            x-ms-error-code:
              x-ms-client-name: ErrorCode
              schema:
                type: string
          x-ms-error-response: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-examples:
        OAuthTokens_GetOAuthConnectionLink:
          $ref: ./examples/OAuthTokens_GetOAuthConnectionLink.json
      summary: Microsoft Azure Post Oauth Tokens :connect
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OAuthConnectRequest'
        description: OAuth Connect Request.
        required: true
  /oauth/tokens/remove/{jobId}:
    get:
      tags:
      - OAuth Tokens
      description: Get remove job for OAuth token.
      operationId: microsoftAzureOauthtokensGetcascadedeletejobdetails
      parameters:
      - in: path
        name: jobId
        description: Id of the job.
        required: true
        schema:
          type: string
      - in: query
        name: api-version
        description: The requested API version
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CascadeDeleteJob'
        default:
          description: Error
          headers:
            x-ms-error-code:
              x-ms-client-name: ErrorCode
              schema:
                type: string
          x-ms-error-response: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-examples:
        OAuthTokens_GetCascadeDeleteJobDetails:
          $ref: ./examples/OAuthTokens_GetCascadeDeleteJobDetails.json
      summary: Microsoft Azure Get Oauth Tokens Remove Jobid
    put:
      tags:
      - OAuth Tokens
      description: Create remove job for OAuth token.
      operationId: microsoftAzureOauthtokensCreatecascadedeletejob
      parameters:
      - in: path
        name: jobId
        description: Job Id supplied by end user.
        required: true
        schema:
          type: string
      - in: query
        name: partyId
        description: Id of the party.
        required: true
        schema:
          type: string
      - in: query
        name: oauthProviderId
        description: Id of the OAuthProvider.
        required: true
        schema:
          type: string
      - in: query
        name: api-version
        description: The requested API version
        required: true
        schema:
          type: string
      responses:
        '202':
          description: Accepted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CascadeDeleteJob'
        default:
          description: Error
          headers:
            x-ms-error-code:
              x-ms-client-name: ErrorCode
              schema:
                type: string
          x-ms-error-response: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-ms-long-running-operation: true
      x-ms-long-running-operation-options:
        final-state-via: location
      x-ms-examples:
        OAuthTokens_CreateCascadeDeleteJob:
          $ref: ./examples/OAuthTokens_CreateCascadeDeleteJob.json
      summary: Microsoft Azure Put Oauth Tokens Remove Jobid
components:
  schemas:
    CascadeDeleteJob:
      description: Schema of cascade delete job.
      required:
      - partyId
      - resourceId
      - resourceType
      type: object
      properties:
        partyId:
          description: Party Id.
          minLength: 1
          type: string
        resourceId:
          description: The id of the resource.
          minLength: 1
          type: string
        resourceType:
          description: The type of the resource.
          minLength: 1
          type: string
        id:
          description: Unique job id.
          type: string
          readOnly: true
        status:
          description: 'Status of the job.

            Possible values: ''Waiting'', ''Running'', ''Succeeded'', ''Failed'', ''Cancelled''.'
          enum:
          - Waiting
          - Running
          - Succeeded
          - Failed
          - Cancelled
          type: string
          readOnly: true
          x-ms-enum:
            name: JobStatus
            modelAsString: true
        durationInSeconds:
          format: double
          description: Duration of the job in seconds.
          type: number
          readOnly: true
        message:
          description: Status message to capture more details of the job.
          type: string
          readOnly: true
        errorCode:
          description: Error Code when job failed.
          type: string
          readOnly: true
        createdDateTime:
          format: date-time
          description: 'Job created at dateTime. Sample format: yyyy-MM-ddTHH:mm:ssZ.'
          type: string
          readOnly: true
        lastActionDateTime:
          format: date-time
          description: 'Job was last acted upon at dateTime. Sample format: yyyy-MM-ddTHH:mm:ssZ.'
          type: string
          readOnly: true
        startTime:
          format: date-time
          description: 'Job start time when available. Sample format: yyyy-MM-ddTHH:mm:ssZ.'
          type: string
          readOnly: true
        endTime:
          format: date-time
          description: 'Job end time when available. Sample format: yyyy-MM-ddTHH:mm:ssZ.'
          type: string
          readOnly: true
    InnerError:
      description: Inner error containing list of errors.See https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#innererror--object for InnerError reference document.
      type: object
      properties:
        code:
          description: Specific error code than was provided by the containing error.
          type: string
        innererror:
          $ref: '#/components/schemas/InnerError'
    ErrorResponse:
      description: An error response from the Azure AgPlatform service. See https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses for ErrorResponse reference document.
      type: object
      properties:
        error:
          $ref: '#/components/schemas/Error'
        traceId:
          description: Unique trace Id.
          type: string
    OAuthTokenListResponse:
      description: Paged response contains list of requested objects and a URL link to get the next set of results.
      required:
      - value
      type: object
      properties:
        value:
          description: List of requested objects.
          type: array
          items:
            $ref: '#/components/schemas/OAuthToken'
        skipToken:
          description: Token used in retrieving the next page. If null, there are no additional pages.
          type: string
        nextLink:
          description: Continuation link (absolute URI) to the next page of results in the list.
          type: string
    Error:
      description: An error from the Azure AgPlatform service.
      required:
      - code
      - message
      type: object
      properties:
        code:
          description: Server-defined set of error codes.
          minLength: 1
          type: string
        message:
          description: Human-readable representation of the error.
          minLength: 1
          type: string
        target:
          description: Target of the error.
          type: string
        details:
          description: Array of details about specific errors that led to this reported error.
          type: array
          items:
            $ref: '#/components/schemas/Error'
        innererror:
          $ref: '#/components/schemas/InnerError'
    OAuthToken:
      description: Schema of OAuth token resource.
      required:
      - authProviderId
      - partyId
      type: object
      properties:
        partyId:
          description: Party ID for this OAuth config.
          type: string
        authProviderId:
          description: ID of the OAuth provider resource containing app information.
          minLength: 1
          type: string
        isValid:
          description: 'An optional flag indicating whether the token is a valid or expired (Default value: true).'
          default: true
          type: boolean
        eTag:
          description: The ETag value to implement optimistic concurrency.
          type: string
          readOnly: true
        createdDateTime:
          format: date-time
          description: 'Date-time when resource was created, sample format: yyyy-MM-ddTHH:mm:ssZ.'
          type: string
          readOnly: true
          example: '2020-12-31T11:10:21Z'
        modifiedDateTime:
          format: date-time
          description: 'Date-time when resource was last modified, sample format: yyyy-MM-ddTHH:mm:ssZ.'
          type: string
          readOnly: true
          example: '2020-12-31T11:10:21Z'
    OAuthConnectRequest:
      description: Get OAuth config query parameters.
      required:
      - oAuthProviderId
      - partyId
      - userRedirectLink
      type: object
      properties:
        partyId:
          description: Id of the party.
          minLength: 1
          type: string
        oAuthProviderId:
          description: Id of the OAuthProvider.
          minLength: 1
          type: string
        userRedirectLink:
          description: Link to redirect the user to, at the end of the oauth flow.
          maxLength: 1000
          minLength: 0
          type: string
        userRedirectState:
          description: State to provide back when redirecting the user, at the end of the oauth flow.
          maxLength: 200
          minLength: 0
          type: string
  securitySchemes:
    Bearer:
      type: apiKey
      name: Authorization
      in: header
      description: Please provide a valid bearer token for authorized API calls. Note that you might need to clear your browser cache if you tried un-authenticated calls before.