openapi: 3.2.0 info: title: PDF Services Generate Token API description: "

" version: '' servers: - url: https://pdf-services-ue1.adobe.io - url: https://pdf-services-ew1.adobe.io tags: - name: Generate Token description: Creates an access token using client id and client secret. Click here to refer underlying IMS authentication APIs. paths: /token: post: tags: - Generate Token summary: Generate access token to perform PDF Services operations description: Creates an access token using client id and client Secret. operationId: authentication.generatetoken requestBody: description: Params for generating the access token. content: application/x-www-form-urlencoded: schema: $ref: '#/components/schemas/Token' required: true responses: '200': description: The request was successful. headers: x-request-id: description: A unique value to identify this request. If x-request-id is specified in the POST request, this value will be the same as the input. schema: type: string content: application/json: schema: $ref: '#/components/schemas/TokenResponse' '400': description: Bad Request. The request was invalid or cannot be otherwise served. headers: content-type: description: The content type of the POST API call response schema: type: string x-request-id: description: A unique value to identify this request. If x-request-id is specified in the POST request, this value will be the same as the input. schema: type: string content: application/json: schema: $ref: '#/components/schemas/IMS400' '401': description: Unauthorized. headers: content-type: description: The content type of the error JSON response. schema: type: string x-request-id: description: A unique value to identify this request. If x-request-id is specified in the POST request, this value will be the same as the input. schema: type: string content: application/json: schema: $ref: '#/components/schemas/IMS401' '403': description: Forbidden. headers: content-type: description: The content type of the error JSON response. schema: type: string x-request-id: description: A unique value to identify this request. If x-request-id is specified in the POST request, this value will be the same as the input. schema: type: string content: application/json: schema: $ref: '#/components/schemas/IMS403' '404': description: Resource Not Found. headers: content-type: description: The content type of the POST API call response schema: type: string x-request-id: description: A unique value to identify this request. If x-request-id is specified in the POST request, this value will be the same as the input. schema: type: string content: application/json: schema: $ref: '#/components/schemas/IMS404' '409': description: The request could not be processed because of conflict in the request headers: content-type: description: The content type of the POST API call response schema: type: string x-request-id: description: A unique value to identify this request. If x-request-id is specified in the POST request, this value will be the same as the input. schema: type: string content: application/json: schema: $ref: '#/components/schemas/IMS409' '500': description: Internal Server Error. The server has encountered an error and is unable to process your request at this time. headers: content-type: description: The content type of the POST API call response schema: type: string x-request-id: description: A unique value to identify this request. If x-request-id is specified in the POST request, this value will be the same as the input. schema: type: string content: application/json: schema: $ref: '#/components/schemas/IMS500' x-codegen-request-body-name: body components: schemas: TokenResponse: description: Response of generate Access Token Operation. type: object properties: access_token: description: The token which can be used in performing the PDF Service Operation. type: string token_type: description: The type of the token issued. type: string expires_in: description: The lifetime in seconds of the access token. type: integer example: access_token: '*******' token_type: Bearer expires_in: '86399' Token: description: Params for generating the Access Token. type: object properties: client_id: description: Contains the client id obtained upon client registration. type: string client_secret: description: Contains the client secret obtained upon client registration. type: string example: client_id: client_secret: required: - client_id - client_secret additionalProperties: false IMS409: properties: error: type: object properties: code: description: The string containing the code field. code is the Mnemonic returned by service in case of any failure. The below list is extendable and going forward the error codes can become more specific. type: string message: description: "An English language string that contains more information about the error. \n\n
codemessage
duplicate_bindingThere are multiple bindings for this client and org.
" type: string example: error: code: duplicate_binding message: There are multiple bindings for this client and org. IMS400: properties: error: type: object properties: code: description: The string containing the code field. code is the Mnemonic returned by service in case of any failure. The below list is extendable and going forward the error codes can become more specific. type: string message: description: "An English language string that contains more information about the error. \n\n
codemessage
invalid_clientmissing client_id parameter
invalid_clientinvalid client_id parameter
invalid_clientmissing client_secret parameter
invalid_clientmissing client_secret parameter
unauthorized_clientclient is not authorized to use this grant type.
invalid_target_scopeNone of the requested scopes is enabled in the SP binding
missing_separatorThe guid xXx is invalid.
" type: string example: error: code: invalid_client message: missing client_id parameter IMS500: properties: error: type: object properties: code: description: The string containing the code field. code is the Mnemonic returned by service in case of any failure. The below list is extendable and going forward the error codes can become more specific. type: string message: description: "An English language string that contains more information about the error. \n\n
codemessage
INTERNAL_SERVER_ERRORThere was an error processing your request.
" type: string example: error: code: INTERNAL_SERVER_ERROR message: There was an error processing your request. IMS403: properties: error: type: object properties: code: description: The string containing the code field. code is the Mnemonic returned by service in case of any failure. The below list is extendable and going forward the error codes can become more specific. type: string message: description: "An English language string that contains more information about the error. \n\n
codemessage
access_deniedfield matching the authentication scheme used by the client.
access_deniedService principal is no longer part of the organization.
ForbiddenThe client is not allowed to perform the operation.
" type: string example: error: code: access_denied message: field matching the authentication scheme used by the client. IMS401: properties: error: type: object properties: code: description: The string containing the code field. code is the Mnemonic returned by service in case of any failure. The below list is extendable and going forward the error codes can become more specific. type: string message: description: "An English language string that contains more information about the error. \n\n
codemessage
invalid_clientAccording to Section 5.2 of RFC6749 the response includes the \"WWW-Authenticate\" response header field matching the authentication scheme used by the client.
" type: string example: error: code: invalid_client message: According to Section 5.2 of RFC6749 the response includes the "WWW-Authenticate" response header field matching the authentication scheme used by the client. IMS404: properties: error: type: object properties: code: description: The string containing the code field. code is the Mnemonic returned by service in case of any failure. The below list is extendable and going forward the error codes can become more specific. type: string message: description: "An English language string that contains more information about the error. \n\n
codemessage
not_foundOrganization with id xXX cannot be found
" type: string example: error: code: NOT_FOUND message: Asset not found. x-tagGroups: - name: Authentication tags: - Generate Token - name: Files tags: - Assets - name: PDF Operations tags: - Combine PDF - Compress PDF - Create PDF - Document Generation - Export PDF - Export PDF Form Data - Extract PDF - Html to PDF - Import PDF Form Data - Linearize PDF - OCR - Page Manipulation - PDF Accessibility Auto-Tag - PDF Accessibility Checker - PDF Electronic Seal - PDF Properties - PDF To Images - PDF To Markdown - PDF Watermark - Protect PDF - Remove Protection - Split PDF