Akoya Service Token API 1.0.1
Paste the following code into your favorite text editor and save it as a YAML file.
Paste the following code into your favorite text editor and save it as a YAML file.
openapi: 3.1.0
x-stoplight:
id: ujzmlufhn70nt
info:
title: Akoya Service Token API v1.0.1
version: 1.0.1
description: "v1.0.1 update\r\n- 9/26/2024\r\n - Updated scope values to use `app_management_v2` for Apps Management API in the wake of the v1 deprecation. Added callout for the same.\r\n- 6/30/2024\r\n - Added scope for the Consent notifications API: `scope=notifications_subscriptions advisory`\r\n - Added a callout explaining the difference in scope for the Management and Notifications APIs.\r\n\r\nAkoya service tokens. Default servers are set for the Akoya sandbox environment."
contact:
name: API Support
url: 'http://www.akoya.com'
email: questions@akoya.com
license:
name: Akoya Terms of Use
url: 'https://recipient.ddp.akoya.com/terms-of-use'
servers:
- url: 'https://sandbox-sts.ddp.akoya.com/oauth2'
description: Sandbox IdP server
- url: 'https://sts.ddp.akoya.com/oauth2'
description: Production IdP server
security:
- BasicAuth: []
tags:
- name: Service tokens
description: Tokens
paths:
/token:
post:
summary: Service token
tags:
- Service tokens
responses:
'200':
description: Token
content:
application/x-www-form-urlencoded:
schema:
type: object
x-examples:
Example 1:
access_token: ory_at_LIex7POO...47uYQ
expires_in: 86399
scope: app_management_v2
token_type: bearer
properties:
access_token:
type: string
expires_in:
type: integer
scope:
type: string
token_type:
type: string
examples:
Successful response:
value:
access_token: ory_at_LIex7POOM-P86yZqMbg-8TXP47uYQ...
expires_in: 86399
scope: app_management_v2
token_type: bearer
'404':
description: Not Found
operationId: post-service-token
description: "> \U0001F6A7 Not for data calls\n>\n> Akoya service tokens are used for Akoya services such as Management or Notifications APIs and are not intended to use with Akoya products for retrieving data. For those, please reference the [Akoya Token API documentation](https://docs.akoya.com/reference/get-token).\n\n> \U0001F6A7 Requirements\n>\n> To create a service token, you'll need a client id and secret. You can access these by logging into the [Data Recipient Hub](https://recipient.ddp.akoya.com/login)\n\nUse the service token endpoint to generate an access token which will last for 24 hours. \n\nThe header must contain Basic Auth (your `clientId` and `secret` base64 encoded), and the body of the request requires the scope specifying the service. After the token expires, use this endpoint to generate a new one.\n\n> \U0001F4D8 The scope for the Apps Management and Notifications APIs are different\n>\n> Use `app_management_v2` for Apps Management and `notifications_subscriptions advisory` for Notifications."
x-stoplight:
id: 088mod8kghh4n
requestBody:
$ref: '#/components/requestBodies/serviceTokenRequest'
x-internal: false
components:
securitySchemes:
BasicAuth:
type: http
scheme: basic
description: 'For Basic Auth, use your `client_id` and `client_secret` for username & password'
requestBodies:
serviceTokenRequest:
content:
application/x-www-form-urlencoded:
schema:
type: object
required:
- grant_type
- scope
properties:
grant_type:
description: 'Defaults to `client_credentials`, your `clientId` and `clientSecret`.'
default: client_credentials
enum:
- client_credentials
scope:
x-stoplight:
id: 5do8rv8mvkjwq
description: The Akoya service accessed by provided credentials.
default: app_management_v2
enum:
- app_management_v2
- notifications_subscriptions advisory
description: 'Set the parameters used for your service token. Indicate "grant_type = client credentials" and specify the `scope` of the token for the Akoya service you''re using. For instance, for the Akoya Management API, `scope=app_management_v2` or for the Notifications API, `notifications_subscriptions advisory`.'
x-internal: false