Centrica Oauth2 API

The Oauth2 API from Centrica — 1 operation(s) for oauth2.

Operations 1

POST /oauth2/token OAuth Access Token #

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/centrica-oauth2-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

centrica-oauth2-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Identity Oauth2 API
  description: API to Generate the Token
  version: '1.0'
servers:
- url: https://api.dev.fieldops.centrica.com/api/v1/identity
security:
- apiKeyHeader: []
- apiKeyQuery: []
tags:
- name: Oauth2
paths:
  /oauth2/token:
    post:
      summary: OAuth Access Token
      description: Get Access token
      operationId: oauth-access-token
      requestBody:
        description: Provide the client ID and client Secret
        content:
          application/x-www-form-urlencoded:
            schema:
              properties:
                grant_type:
                  type: string
                client_id:
                  type: string
                client_secret:
                  type: string
            example: grant_type=client_credentials&client_id=<<clientid>>&client_secret=<<clientsecret>>
      responses:
        '200':
          description: Token response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Oauth2TokenPost200ApplicationJsonResponse'
              example:
                token_type: Bearer
                expires_in: '3599'
                ext_expires_in: '3599'
                expires_on: '1623320276'
                not_before: '1623316376'
                resource: 00000002-0000-0000-c000-000000000000
                access_token: XXXXXXX
      tags:
      - Oauth2
components:
  schemas:
    Oauth2TokenPost200ApplicationJsonResponse:
      title: TokenResponse
      required:
      - token_type
      - access_token
      type: object
      properties:
        token_type:
          type: string
        expires_in:
          type: string
        ext_expires_in:
          type: string
        expires_on:
          type: string
        not_before:
          type: string
        resource:
          type: string
        access_token:
          type: string
  securitySchemes:
    apiKeyHeader:
      type: apiKey
      name: Ocp-Apim-Subscription-Key
      in: header
    apiKeyQuery:
      type: apiKey
      name: subscription-key
      in: query