Workflows

Create an authentication provider for workflows

Creates an authentication provider for reuse in Workflow tasks and supported integrations.

post/auth_providers

Request

  • Base URL: https://rest.test.zuora.com
  • URL: https://rest.test.zuora.com/auth_providers
  • Auth: HTTP bearer

Headers

Idempotency-Keystring

Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types.

With this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident.

Accept-Encodingstring

Include the Accept-Encoding: gzip header to compress responses as a gzipped file. It can significantly reduce the bandwidth required for a response.

If specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a Content-Encoding header with the compression algorithm so that your client can decompress it.

Content-Encodingstring

Include the Content-Encoding: gzip header to compress a request. With this header specified, you should upload a gzipped file for the request payload instead of sending the JSON payload.

Zuora-Track-Idstring

A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue.

The value of this field must use the US-ASCII character set and must not include any of the following characters: colon (:), semicolon (;), double quote ("), and quote (').

Zuora-Versionstring

The minor API version.

For a list of available minor versions, see API upgrades.

Request body

Example request

{
  "auth_provider": {
    "name": "billing-basic-auth",
    "service_name": "billing",
    "description": "Basic authentication for the billing API",
    "auth_type": "basic_auth",
    "active": true,
    "credentials": {
      "username": "api-user",
      "password": "api-secret-password",
      "access_key": "AKIAEXAMPLE",
      "secret_key": "your-secret-key",
      "region": "us-west-2",
      "site": "https://example.com",
      "client_id": "my-client-id",
      "client_secret": "my-client-secret",
      "grant_type": "Client Credentials",
      "redirect_uri": "https://example.com/oauth/callback",
      "auth_params": "{\"audience\":\"https://example.com\"}",
      "auth_header_name": "X-Custom-Authorization",
      "auth_header_value": "custom-value",
      "consumer_key": "consumer-key",
      "consumer_secret": "consumer-secret",
      "signature_method": "HMAC-SHA1",
      "token": "access-token",
      "token_secret": "token-secret",
      "ns_account": "1234567",
      "algorithm": "sha256",
      "key": "hmac-key",
      "secret": "hmac-secret",
      "data": "payload-to-sign",
      "signed_header_key": "X-Signature",
      "signed_header_value": "signed-value"
    }
  }
}

Response

Authentication provider created successfully.

idstring uuid required

UUID of the created authentication provider.

status'created' required

Result of the create operation.

Example response

{
  "id": "ffdb2cd6-d55d-4401-ac52-38d9e7c1d0cd",
  "status": "created"
}

Changes

No operation changes recorded.