Autotask icon

Autotask

Work with Autotask PSA REST API resources

Actions125

Opportunity → Get Opportunity

AI-generated

Summary

Retrieve a single Autotask Opportunity record by its numeric ID.

Inputs

  • entityId (required) — Numeric ID of the opportunity to retrieve.
  • requestOptions — Optional collection of request header overrides; includes impersonationResourceId to override credential defaults.

Output shape

a single Opportunity object

Returns the full Opportunity record; if no match is found an error is thrown unless Continue On Fail is enabled.

Examples

Example 1: Fetch opportunity ID 12345 with default credentials.

entityId: 12345

Example 2: Fetch opportunity ID 12345 while impersonating resource 98765.

entityId: 12345; requestOptions: {"impersonationResourceId": "98765"}

Links

Discussion