Arasaka Oy OAuth API

Authorization code + PKCE for public clients

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 16

GET /.well-known/oauth-protected-resource OAuth protected resource metadata #
HEAD /.well-known/oauth-protected-resource OAuth protected resource metadata headers #
OPTIONS /.well-known/oauth-protected-resource CORS preflight #
GET /.well-known/oauth-protected-resource/mcp OAuth protected resource metadata (path-insert) #
HEAD /.well-known/oauth-protected-resource/mcp Path-insert metadata headers #
OPTIONS /.well-known/oauth-protected-resource/mcp CORS preflight #
GET /mcp/.well-known/oauth-protected-resource OAuth protected resource metadata (under /mcp) #
HEAD /mcp/.well-known/oauth-protected-resource Under-/mcp metadata headers #
OPTIONS /mcp/.well-known/oauth-protected-resource CORS preflight #
GET /.well-known/oauth-authorization-server OAuth authorization server metadata #
OPTIONS /.well-known/oauth-authorization-server CORS preflight #
POST /oauth/register Dynamic client registration #
GET /oauth/authorize Authorization endpoint #
POST /oauth/token Token endpoint #
POST /oauth/revoke Revoke a token #
POST /api/oauth/consent Browser consent decision #

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/xn-s7y-xn-3ds443g:xn-s7y-xn-3ds443g-oauth-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

xn-s7y-xn-3ds443g-oauth-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Xn S7y Xn 3ds443g OAuth API
  version: 1.7.0
  contact:
    name: 短.在线
    url: https://短.在线/security
  description: 'Operations tagged OAuth across 2 of this provider''s published API definitions: openapi.json, xn-s7y-xn-3ds443g-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://xn--s7y.xn--3ds443g
- url: https://短.在线
tags:
- name: OAuth
  description: Authorization code + PKCE for public clients
paths:
  /.well-known/oauth-protected-resource:
    get:
      operationId: getOAuthProtectedResource
      tags:
      - OAuth
      summary: OAuth protected resource metadata
      description: RFC 9728 document named by WWW-Authenticate `resource_metadata`. `resource` is `{origin}/mcp` with no trailing slash. `authorization_servers` is that origin. `bearer_methods_supported` is `header` only. `scopes_supported` is the issuable catalog (`links:disable` and `analytics:read` are included when those capabilities are on). Same JSON as the path-insert and `/mcp` aliases.
      security:
      - {}
      responses:
        '200':
          description: Protected resource metadata
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OAuthProtectedResourceMetadata'
    head:
      operationId: headOAuthProtectedResource
      tags:
      - OAuth
      summary: OAuth protected resource metadata headers
      security:
      - {}
      responses:
        '200':
          description: Same headers as GET, empty body
    options:
      operationId: optionsOAuthProtectedResource
      tags:
      - OAuth
      summary: CORS preflight
      security:
      - {}
      responses:
        '200':
          description: CORS preflight
    servers:
    - url: https://xn--s7y.xn--3ds443g
    - url: https://短.在线
  /.well-known/oauth-protected-resource/mcp:
    get:
      operationId: getOAuthProtectedResourceMcp
      tags:
      - OAuth
      summary: OAuth protected resource metadata (path-insert)
      description: RFC 9728 path-insert form for the resource at `/mcp`. Same JSON as `/.well-known/oauth-protected-resource`.
      security:
      - {}
      responses:
        '200':
          description: Protected resource metadata
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OAuthProtectedResourceMetadata'
    head:
      operationId: headOAuthProtectedResourceMcp
      tags:
      - OAuth
      summary: Path-insert metadata headers
      security:
      - {}
      responses:
        '200':
          description: Same headers as GET, empty body
    options:
      operationId: optionsOAuthProtectedResourceMcp
      tags:
      - OAuth
      summary: CORS preflight
      security:
      - {}
      responses:
        '200':
          description: CORS preflight
    servers:
    - url: https://xn--s7y.xn--3ds443g
    - url: https://短.在线
  /mcp/.well-known/oauth-protected-resource:
    get:
      operationId: getOAuthProtectedResourceUnderMcp
      tags:
      - OAuth
      summary: OAuth protected resource metadata (under /mcp)
      description: Same JSON as `/.well-known/oauth-protected-resource`. The 401 challenge names the root document, not this URL.
      security:
      - {}
      responses:
        '200':
          description: Protected resource metadata
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OAuthProtectedResourceMetadata'
    head:
      operationId: headOAuthProtectedResourceUnderMcp
      tags:
      - OAuth
      summary: Under-/mcp metadata headers
      security:
      - {}
      responses:
        '200':
          description: Same headers as GET, empty body
    options:
      operationId: optionsOAuthProtectedResourceUnderMcp
      tags:
      - OAuth
      summary: CORS preflight
      security:
      - {}
      responses:
        '200':
          description: CORS preflight
    servers:
    - url: https://xn--s7y.xn--3ds443g
    - url: https://短.在线
  /.well-known/oauth-authorization-server:
    get:
      operationId: getOAuthAuthorizationServerMetadata
      tags:
      - OAuth
      summary: OAuth authorization server metadata
      description: RFC 8414. `issuer` is the public origin. Advertises authorization code and refresh token, response type `code`, PKCE `S256`, and token endpoint auth `none`. `client_id_metadata_document_supported` is false. `scopes_supported` is the issuable catalog, not the default grant.
      security:
      - {}
      responses:
        '200':
          description: Authorization server metadata
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OAuthAuthorizationServerMetadata'
    options:
      operationId: optionsOAuthAuthorizationServerMetadata
      tags:
      - OAuth
      summary: CORS preflight
      security:
      - {}
      responses:
        '204':
          description: CORS preflight
    servers:
    - url: https://xn--s7y.xn--3ds443g
    - url: https://短.在线
  /oauth/register:
    post:
      operationId: registerOAuthClient
      tags:
      - OAuth
      summary: Dynamic client registration
      description: RFC 7591 subset for public clients. `redirect_uris` is required and must be non-empty. Each URI is https, or http on localhost / 127.0.0.1, with no userinfo and no fragment. `token_endpoint_auth_method` must be omitted or `none`. No client secret is issued. The same handler is mounted at `/en/oauth/register` and `/zh-cn/oauth/register`. Rate-limited per IP (429 `rate_limited`). Errors are OAuth JSON, not problem+json.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/OAuthClientRegistrationRequest'
      security:
      - {}
      responses:
        '201':
          description: Client registered
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OAuthClientRegistrationResponse'
        '400':
          description: invalid_client_metadata or invalid_redirect_uri
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OAuthError'
        '429':
          description: rate_limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OAuthError'
        '500':
          description: server_error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OAuthError'
    servers:
    - url: https://xn--s7y.xn--3ds443g
    - url: https://短.在线
  /oauth/authorize:
    get:
      operationId: oauthAuthorize
      tags:
      - OAuth
      summary: Authorization endpoint
      description: 'Authorization code + PKCE S256. Query: `response_type=code`, `client_id`, `redirect_uri` (exact match to a registered URI), `code_challenge`, `code_challenge_method=S256`, optional `state`, optional `scope`, optional `resource` (stored, not matched against `/mcp`). Unknown client is 400 `invalid_client`. Bad redirect is 400 `invalid_redirect`. Neither redirects. A valid request redirects (307) to the browser connect page. The code is issued only after consent.'
      parameters:
      - name: response_type
        in: query
        required: true
        schema:
          type: string
          enum:
          - code
      - name: client_id
        in: query
        required: true
        schema:
          type: string
      - name: redirect_uri
        in: query
        required: true
        schema:
          type: string
      - name: code_challenge
        in: query
        required: true
        schema:
          type: string
          minLength: 43
      - name: code_challenge_method
        in: query
        required: true
        schema:
          type: string
          enum:
          - S256
      - name: state
        in: query
        required: false
        schema:
          type: string
      - name: scope
        in: query
        required: false
        description: Space-separated issuable scopes. Omit for `links:read` only.
        schema:
          type: string
      - name: resource
        in: query
        required: false
        description: Optional. Stored on the transaction. Not validated against `/mcp`.
        schema:
          type: string
      security:
      - {}
      responses:
        '302':
          description: Redirect to redirect_uri with an OAuth error
        '307':
          description: Browser redirect to the connect page (`/{locale}/oauth/connect?txn=`)
        '400':
          description: invalid_client or invalid_redirect (JSON, no Location)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OAuthError'
    servers:
    - url: https://xn--s7y.xn--3ds443g
    - url: https://短.在线
  /oauth/token:
    post:
      operationId: oauthToken
      tags:
      - OAuth
      summary: Token endpoint
      description: '`grant_type=authorization_code` or `refresh_token`. Public clients (`client_id` only, no client secret). Form body or JSON. An authorization code is single-use and bound to `client_id`, `redirect_uri`, and the S256 verifier. Refresh returns a new refresh token. Store it. The previous refresh token is invalid after use, and reuse revokes the connection. Optional `scope` may only narrow the granted scope. Other grant types are `unsupported_grant_type`. Over the limit: 429 `temporarily_unavailable` with Retry-After and Cache-Control no-store. If the limiter cannot answer: 503, and no token is issued.'
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/OAuthTokenRequest'
          application/json:
            schema:
              $ref: '#/components/schemas/OAuthTokenRequest'
      security:
      - {}
      responses:
        '200':
          description: Access token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OAuthTokenResponse'
        '400':
          description: invalid_request, invalid_grant, invalid_client, invalid_scope, or unsupported_grant_type
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OAuthError'
        '429':
          description: temporarily_unavailable when the client IP or client_id limit is reached. Retry-After is set. Cache-Control is no-store.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OAuthError'
        '503':
          description: temporarily_unavailable when the limiter store cannot answer. No token is issued. Retry-After is set. Cache-Control is no-store.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OAuthError'
    servers:
    - url: https://xn--s7y.xn--3ds443g
    - url: https://短.在线
  /oauth/revoke:
    post:
      operationId: oauthRevoke
      tags:
      - OAuth
      summary: Revoke a token
      description: RFC 7009. Public clients (`token_endpoint_auth_method` none) send `token` and may send `client_id`. No CSRF cookie. Unknown or invalid tokens, and a `client_id` that does not own the token, return 200 and change nothing. Revoking a refresh token revokes its family. Revoking an access token revokes that row, which also retires the refresh token stored on it. The same per-IP and per-client limits as POST /oauth/token apply.
      requestBody:
        required: true
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/OAuthRevokeRequest'
          application/json:
            schema:
              $ref: '#/components/schemas/OAuthRevokeRequest'
      security:
      - {}
      responses:
        '200':
          description: The token is revoked, or it was unknown or invalid.
        '400':
          description: invalid_request when token is missing
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OAuthError'
        '429':
          description: temporarily_unavailable when the client IP or client_id limit is reached. Retry-After is set. Cache-Control is no-store.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OAuthError'
        '503':
          description: temporarily_unavailable when the limiter store cannot answer. Retry-After is set. Cache-Control is no-store.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OAuthError'
    servers:
    - url: https://xn--s7y.xn--3ds443g
    - url: https://短.在线
  /api/oauth/consent:
    post:
      operationId: oauthConsent
      tags:
      - OAuth
      summary: Browser consent decision
      description: Session-cookie endpoint the connect page calls after sign-in. Requires a same-origin Origin (CSRF). JSON body `{txn, decision}` where decision is `allow` or `deny`. Returns `{redirect}` for the browser to follow. This is not a redirect response and not a token endpoint. Requires the `duan_session` cookie. An API key or OAuth access token does not replace it.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - txn
              - decision
              properties:
                txn:
                  type: string
                decision:
                  type: string
                  enum:
                  - allow
                  - deny
      security:
      - sessionCookie: []
      responses:
        '200':
          description: Browser navigation target
          content:
            application/json:
              schema:
                type: object
                required:
                - redirect
                properties:
                  redirect:
                    type: string
        '400':
          description: invalid_json, invalid_request, or invalid_txn
          content:
            application/json:
              schema:
                type: object
                required:
                - error
                properties:
                  error:
                    type: string
        '401':
          description: auth_required
          content:
            application/json:
              schema:
                type: object
                required:
                - error
                properties:
                  error:
                    type: string
        '403':
          description: csrf_rejected
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
    servers:
    - url: https://xn--s7y.xn--3ds443g
    - url: https://短.在线
components:
  schemas:
    OAuthClientRegistrationResponse:
      type: object
      required:
      - client_id
      - redirect_uris
      - token_endpoint_auth_method
      - grant_types
      - response_types
      properties:
        client_id:
          type: string
        client_name:
          type: string
        redirect_uris:
          type: array
          items:
            type: string
        token_endpoint_auth_method:
          type: string
          enum:
          - none
        grant_types:
          type: array
          items:
            type: string
            enum:
            - authorization_code
            - refresh_token
        response_types:
          type: array
          items:
            type: string
            enum:
            - code
    OAuthClientRegistrationRequest:
      type: object
      required:
      - redirect_uris
      properties:
        client_name:
          type: string
        redirect_uris:
          type: array
          minItems: 1
          items:
            type: string
        token_endpoint_auth_method:
          type: string
          enum:
          - none
    OAuthProtectedResourceMetadata:
      type: object
      required:
      - resource
      - authorization_servers
      - scopes_supported
      - bearer_methods_supported
      properties:
        resource:
          type: string
          description: '{origin}/mcp with no trailing slash'
        authorization_servers:
          type: array
          items:
            type: string
        scopes_supported:
          type: array
          items:
            type: string
            enum:
            - links:create
            - links:read
            - links:update
            - batches:create
        bearer_methods_supported:
          type: array
          items:
            type: string
            enum:
            - header
    OAuthAuthorizationServerMetadata:
      type: object
      required:
      - issuer
      - authorization_endpoint
      - token_endpoint
      - registration_endpoint
      - scopes_supported
      - response_types_supported
      - grant_types_supported
      - token_endpoint_auth_methods_supported
      - code_challenge_methods_supported
      properties:
        issuer:
          type: string
        authorization_endpoint:
          type: string
        token_endpoint:
          type: string
        registration_endpoint:
          type: string
        scopes_supported:
          type: array
          items:
            type: string
            enum:
            - links:create
            - links:read
            - links:update
            - batches:create
        response_types_supported:
          type: array
          items:
            type: string
            enum:
            - code
        grant_types_supported:
          type: array
          items:
            type: string
            enum:
            - authorization_code
            - refresh_token
        token_endpoint_auth_methods_supported:
          type: array
          items:
            type: string
            enum:
            - none
        code_challenge_methods_supported:
          type: array
          items:
            type: string
            enum:
            - S256
        resource:
          type: string
        client_id_metadata_document_supported:
          type: boolean
          enum:
          - false
        revocation_endpoint:
          type: string
    OAuthTokenResponse:
      type: object
      required:
      - access_token
      - token_type
      - expires_in
      - refresh_token
      - scope
      properties:
        access_token:
          type: string
        token_type:
          type: string
          enum:
          - Bearer
        expires_in:
          type: integer
          description: Access token lifetime in seconds (3600).
          example: 3600
        refresh_token:
          type: string
        scope:
          type: string
          example: links:read
    OAuthTokenRequest:
      type: object
      required:
      - grant_type
      - client_id
      properties:
        grant_type:
          type: string
          enum:
          - authorization_code
          - refresh_token
        client_id:
          type: string
        code:
          type: string
        redirect_uri:
          type: string
        code_verifier:
          type: string
          minLength: 43
          maxLength: 128
        refresh_token:
          type: string
        scope:
          type: string
          description: Optional. May only narrow the granted scope.
    OAuthRevokeRequest:
      type: object
      required:
      - token
      properties:
        token:
          type: string
        client_id:
          type: string
        token_type_hint:
          type: string
          enum:
          - access_token
          - refresh_token
    OAuthError:
      type: object
      required:
      - error
      properties:
        error:
          type: string
        error_description:
          type: string
  securitySchemes:
    sessionCookie:
      type: apiKey
      in: cookie
      name: duan_session
      description: Session cookie `duan_session` for the web app. Accepted on owner REST list, update, enable, and QR, and as optional account auth on REST create and batch. Required for POST /api/oauth/consent. Does not authorize POST /mcp. Not a public /v1 login route. Anonymous create does not require this cookie.
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: APIKey
      description: 'Bearer API key (`Authorization: Bearer <key>`). Dashboard-minted scoped keys with `links:create`, `links:read`, `links:update`, `links:disable`, `analytics:read`, `batches:create`. Not a god-key / `*`. Not an OAuth access token. Accepted on REST `/v1` and on `POST /mcp`. A presented Bearer that does not verify is 401 and is not anonymous access. Missing scope → 403 INSUFFICIENT_SCOPE. Anonymous REST create remains available when the Authorization header is absent.'
    oauth2:
      type: oauth2
      description: 'Authorization code + PKCE S256 for a public client (no client secret). Token endpoint auth method is `none`. Flows are authorization code and refresh only: no client-credentials grant, no implicit grant, and no device code. An omitted scope grants `links:read` only. `links:disable` is granted only when explicitly requested. `analytics:read` is granted only when explicitly requested. Access tokens are sent as `Authorization: Bearer` on `POST /mcp` only and are bound to the canonical MCP resource. REST `/v1` does not accept them.'
      flows:
        authorizationCode:
          authorizationUrl: https://xn--s7y.xn--3ds443g/oauth/authorize
          tokenUrl: https://xn--s7y.xn--3ds443g/oauth/token
          refreshUrl: https://xn--s7y.xn--3ds443g/oauth/token
          scopes:
            links:create: Create short links
            links:read: Read links you own
            links:update: Update links you own
            links:disable: Disable links you own
            analytics:read: Read aggregate click statistics for your links
            batches:create: Create a sync batch of short links
x-refined-from:
- openapi.json
- xn-s7y-xn-3ds443g-openapi.json
x-provenance:
  method: harvested
  publisher: Arasaka Oy
  source: https://xn--s7y.xn--3ds443g/openapi.json
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)