opportunity
Get an opportunity
/v1/opportunities/{opportunityId}Reads one opportunity by id, with its description, value, timeline and the quotes raised against it. The opportunity's value is in the workspace's current currency, named by currency; each quote's total is in that quote's own currency, named on the quote. An id belonging to another tenant, to a hidden client, or to an opportunity the PSA no longer backs answers not_found; existence is never leaked.
Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
| opportunityId | path | Yes | string | — |
Request body
No request body.
Responses and errors
200
Get an opportunity
- id (required): string
- name (required): string
- url (required): string
- status (required): string
- stage (required): string
- stageId (required): object
- estimatedValue (required): number
- currency (required): object — The currency of this opportunity's amounts: the workspace's current currency. Null when the workspace currency cannot be read, in which case the amounts have no unit.
- closeDate (required): object
- clientName (required): string
- clientId (required): object
- clientUrl (required): object
- createdAt (required): object
- description (required): object
- quotes (required): array
- updatedAt (required): object
400
Error envelope. `error.code` carries the typed outcome and `error.type` resolves to its description.
- ValidationFailedError:
- allOf: ErrorEnvelope
401
Error envelope. `error.code` carries the typed outcome and `error.type` resolves to its description.
- UnauthorizedError:
- allOf: ErrorEnvelope
403
Error envelope. `error.code` carries the typed outcome and `error.type` resolves to its description.
- ForbiddenError:
- allOf: ErrorEnvelope
404
Error envelope. `error.code` carries the typed outcome and `error.type` resolves to its description.
- NotFoundError:
- allOf: ErrorEnvelope
429
Error envelope. `error.code` carries the typed outcome and `error.type` resolves to its description.
- RateLimitedError:
- allOf: ErrorEnvelope
503
Error envelope. `error.code` carries the typed outcome and `error.type` resolves to its description.
- UnavailableError:
- allOf: ErrorEnvelope
Example
curl --request GET \
--url 'https://api.scopable.io/v1/opportunities/{opportunityId}' \
--header 'Authorization: Bearer $SCOPABLE_API_KEY'Replace $SCOPABLE_API_KEY with a key created in Settings, API.
Need help with the API? …