{ "swagger": "2.0", "info": { "version": "2.0", "title": "DCR Api" }, "host": "sp.auth.adobe.com", "basePath": "/o", "schemes": [ "https" ], "tags": [ { "name": "Dynamic Client Registration", "description": "It secures client communications between a programmer application or server and the Adobe Pass services" } ], "paths": { "/client/register": { "post": { "tags": ["Dynamic Client Registration"], "summary": "Register client application", "description": "Get client credentials for a software statement and get scopes information", "operationId": "processSoftwareStatementUsingPOST", "consumes": ["application/json"], "produces": ["application/json"], "parameters": [ { "name": "Content-Type", "in": "header", "description": "application/json", "required": true, "type": "string" }, { "in": "body", "name": "clientRegistrationRequest", "description": "The software statement created in TVE Dashboard and the URI that the application uses for completing the authentication flow can optionally be present.", "required": true, "schema": { "$ref": "#/definitions/ClientRegistrationRequest" } }, { "name": "X-Device-Info", "in": "header", "description": "The device information as defined in Passing Device and Connection Information", "required": true, "type": "string" }, { "name": "User-Agent", "in": "header", "description": "The user agent", "required": true, "type": "string" } ], "responses": { "201": { "description": "Created", "schema": { "$ref": "#/definitions/ClientApplication" } }, "400": { "description": "Bad request" } } } }, "/client/token": { "post": { "tags": ["Dynamic Client Registration"], "summary": "Retrieve client token", "description": "Get access token for a pair of client credentials", "operationId": "generateAccessTokenUsingPOST", "consumes": ["application/json"], "produces": ["application/json"], "parameters": [ { "name": "client_id", "in": "query", "description": "Client identifier obtained in the client registration process.", "required": true, "type": "string" }, { "name": "client_secret", "in": "query", "description": "Client identifier obtained in the client registration process.", "required": true, "type": "string" }, { "name": "refresh_token", "in": "query", "description": "The token used to refresh the access token.", "required": false, "type": "string" }, { "name": "grant_type", "in": "query", "description": "Received in the client registration process. The accepted value is: client_credentials: Used for insecure clients, such as the Android SDK.", "required": true, "type": "string" } ], "responses": { "201": { "description": "Created", "schema": { "$ref": "#/definitions/ClientRegistrationAccessTokenResponse" } }, "400": { "description": "Bad request" } } } } }, "definitions": { "ClientRegistrationAccessTokenResponse": { "type": "object", "properties": { "access_token": { "type": "string" }, "created_at": { "type": "integer", "format": "int64" }, "expires_in": { "type": "integer", "format": "int64" }, "id": { "type": "string" }, "refresh_token": { "type": "string" }, "token_type": { "type": "string" } } }, "ClientApplication": { "type": "object", "properties": { "client_id": { "type": "string" }, "client_id_issued_at": { "type": "integer", "format": "int64" }, "client_secret": { "type": "string" }, "grant_types": { "type": "array", "items": { "type": "string" } }, "redirect_uris": { "type": "array", "items": { "type": "string" } }, "scopes": { "type": "array", "items": { "type": "string" } } } }, "ClientRegistrationRequest": { "type": "object", "required": ["redirect_uri", "software_statement"], "properties": { "software_statement": { "type": "string" }, "redirect_uri": { "type": "string" } } } } }