Skip to main content
GET
Retrieve application OAuth credentials

Authorizations

Authorization
string
header
required

OAuth 2.0 client credentials flow. Contact timeback@trilogy.com to request credentials for your application.

Path Parameters

sourcedApplicationId
string<uuid>
required

UUID of the App whose credentials are being retrieved

Response

App credentials

Response from GET /applications/1.0/{appId}/credentials. The credential fields are wrapped under productionCredentials so a future sandboxCredentials sibling envelope can be added without breaking this response.

clientSecret is intentionally absent: Cognito does not allow reading the secret back after creation. It is surfaced exactly once on the POST /applications/1.0/drafts response; if you did not save it then, contact TimeBack support.

The clientId is stable across draft→active promotion: developers do NOT need to rotate credentials when their App is approved. Scopes expand on promotion; client identity does not.

appUrn
string
required

Canonical URN identifying your registered application.

Format: urn:uuid:{applicationId} (RFC 4122). Use this value as Caliper edApp.id when emitting events from your app.

Pattern: ^urn:uuid:[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$
Example:

"urn:uuid:53f0d94d-786d-409a-b5eb-7a6c1db8957b"

applicationId
string<uuid>
required

Unique identifier of the App whose credentials are returned.

productionCredentials
object
required

OAuth credentials for the App on the production Cognito user pool. The same client is used in both draft and active App states — scopes expand on promotion but clientId, tokenUrl, and shape do not change. A future sandboxCredentials sibling envelope will carry sandbox-pool credentials when the sandbox Cognito pool exists.

sandboxCredentials
object | null
required

Sandbox-pool credentials (no secret). Null when the App is sandbox-pending.

sandboxStatus
enum<string>
required

pending when the sandbox side has not been provisioned; awaiting_secret_claim when the sandbox exists but the secret has not been issued (call rotate_credentials to collect it without rotating production); provisioned when the sandbox credentials have been issued.

Available options:
pending,
awaiting_secret_claim,
provisioned