> ## Documentation Index
> Fetch the complete documentation index at: https://syteca.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get secret credentials (pre-v1.3 endpoint)

> Pre-v1.3 endpoint for retrieving secret credentials. Superseded by GET /api/secrets/{id}/password but still supported for backward compatibility. Access Token goes in the JSON body, not a header.



## OpenAPI

````yaml /api-specs/acb-secrets.yaml post /get_secret_details
openapi: 3.0.3
info:
  title: Application Credentials Broker API
  description: >-
    API for managing secrets and folders in the Application Credentials Broker
    system
  version: 1.4.0
  contact:
    name: API Support
    email: support@example.com
servers:
  - url: https://your-syteca-host/SytecaACB
    description: On-premises Syteca ACB service (v1.2 or later)
    variables:
      hostname:
        default: your-syteca-host.example.com
        description: Your Syteca Application Server hostname
  - url: https://your-syteca-host/EkranACB
    description: Legacy URL prefix for ACB deployments updated from pre-v1.2
    variables:
      hostname:
        default: your-syteca-host.example.com
        description: Your Syteca Application Server hostname
security:
  - AccessTokenAuth: []
paths:
  /get_secret_details:
    post:
      tags:
        - Old Endpoints
      summary: Get secret credentials (pre-v1.3 endpoint)
      description: >-
        Pre-v1.3 endpoint for retrieving secret credentials. Superseded by GET
        /api/secrets/{id}/password but still supported for backward
        compatibility. Access Token goes in the JSON body, not a header.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GetSecretDetailsRequest'
      responses:
        '200':
          description: Credentials returned successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GetSecretDetailsResponse'
        '401':
          description: Expired or invalid Access Token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: User lacks at least PAM User role on this secret
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Secret not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security: []
components:
  schemas:
    GetSecretDetailsRequest:
      type: object
      required:
        - accessToken
        - secretId
      properties:
        accessToken:
          type: string
          description: Access Token returned by get_access_token.
        secretId:
          type: integer
          format: int32
          minimum: 1
          description: >-
            The ID of the secret. Find it on the Automation tab of the Edit
            Secret page.
    GetSecretDetailsResponse:
      type: object
      properties:
        login:
          type: string
          description: Login name.
        password:
          type: string
          description: Password value.
        ssh_key:
          $ref: '#/components/schemas/SshKey'
          description: SSH key data (UnixAccountSSH only).
        domain:
          type: string
          description: AD domain (ADAccount only).
        server:
          type: string
          description: Server hostname (Unix/MSSQL accounts).
        computer_name:
          type: string
          description: Target computer (WindowsAccount only).
        url:
          type: string
          description: Application URL (WebAccount only).
    ErrorResponse:
      type: object
      properties:
        status:
          type: integer
          description: HTTP status code
        message:
          type: string
          description: Error message
      required:
        - status
        - message
    SshKey:
      type: object
      properties:
        private_key:
          type: string
          description: SSH private key
        pass_phrase:
          type: string
          description: Passphrase for the private key
      required:
        - private_key
  securitySchemes:
    AccessTokenAuth:
      type: apiKey
      in: header
      name: Authorization
      description: Access token for authentication

````