{"type":"api","title":"Authentication API","meta":{"id":"/apps/pubhub/media/dna-center-235/0e427c513038595590fc5a0593cb0e208dd78571/2192edf3-d24e-3461-ab8c-12a97b547df4","swagger":"2.0","info":{"description":"Cisco DNA Center Platform v. 2.3.5","version":"2.3.5","title":"Intent API"},"schemes":["https"],"x-parser-conf":{"expand":0,"labelConfig":{"endpoint":"summary"}}},"spec":{"operationId":"authenticationAPI","tags":["Authentication"],"summary":"Authentication API","description":"API to obtain an access token, which remains valid for 1 hour. The token obtained using this API is required to be set as value to the X-Auth-Token HTTP Header for all API calls to Cisco DNA Center.","consumes":["application/json"],"produces":["application/json"],"parameters":[{"name":"Content-Type","description":"Request body content type","default":"application/json","required":true,"type":"string","in":"header"},{"name":"Authorization","description":"API supports both Basic auth and AES key encryption as Authorization token in header. AES key encryption is optional and can be enabled under DNAC System configuration. For Basic Auth: Authorization header is Base64 encoded string of \"username:password\", For example Authorization header will contain “Basic YWRtaW46TWFnbGV2MTIz”, where YWRtaW46TWFnbGV2MTIz is the Base64 encoded string. For AES key encryption, Authorization header is Base64 encoded string of AES key. For example Authorization header will contain \"CSCO-AES-256 credentials=2k/wGz48lp3ma9sM+2xiyQ==\", where \"2k/wGz48lp3ma9sM+2xiyQ==\" is base64 encoded string of 256 bits AES key encrypted \"username:password\".","default":"","required":true,"type":"string","in":"header"}],"responses":{"200":{"description":"Successful Token Generation","schema":{"type":"object","properties":{"Token":{"type":"string"}},"$$ref":"#/definitions/AuthenticationAPIResponse"}},"401":{"description":"Invalid Credentials "}},"__originalOperationId":"authenticationAPI","method":"post","path":"/dna/system/api/v1/auth/token"}}