# Get AWS parameters

Retrieves AWS credentials for the specified LRA and service. Used when a video identification process stores evidence on AWS. See [getAwsParameter](https://docs.namirial.app/products/leandisposable/enterprise-documentation/developer-documentation/api-references/lean-documents/lean-getawsparameter-method).

Endpoint: GET /api/document/{lraId}/getAwsParameter
Version: 26.1.0.3
Security: basicAuth, sslCertificate

## Security:

  - `basicAuth` (unknown)
    http basic

  - `sslCertificate` (unknown)
    mutualTLS

## Path parameters:

  - `lraId` (string, required)
    Local Registration Authority (LRA) identifier.

## Query parameters:

  - `serviceId` (string, required)
    The service name.

## Response 200:

  - `200` (unknown)
    AWS credentials for the specified service.

## Response 200 fields (application/json):

  - `serviceId` (string)
    The service name.
    Example: SERVICE_NAME

  - `arn` (string)
    Amazon Resource Name (ARN) of the IAM role.
    Example: arn:aws:iam::000000000000:role/ExampleRole

  - `accessKey` (string)
    AWS access key ID.
    Example: AKIAIOSFODNN0EXAMPLE

  - `secretAccessKey` (string)
    AWS secret access key.
    Example: wJalrXUtnFEMI0K7MDENG0bPxRfiCYEXAMPLEKEY

## Response 500:

  - `500` (unknown)
    Application error. The backend returns HTTP 500 for all application errors, including validation failures and authentication errors.

## Response 500 fields (application/json):

  - `code` (integer, required)
    Application error code.
    Example: 242

  - `message` (string, required)
    Human-readable error description. For validation errors (code 242), includes field-level details in the format `Input parameter invalid: [{field=..., message=...}]`.
    Example: Input parameter invalid: [{field=disposableHolder, message=must not be null}]

## Response 200 examples:

  - `AWS parameters` (unknown)

## Response 500 examples:

  - `serviceId missing (code 242)` (unknown)

  - `LRA not authorized for the service (code 245)` (unknown)

  - `Authentication or authorization error (code 11002)` (unknown)

