Opportunities you can see
GET
/v1/workspace/opportunities
const url = 'https://api.vocapable.com/v1/workspace/opportunities?view=mine&open=false&limit=50';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.vocapable.com/v1/workspace/opportunities?view=mine&open=false&limit=50' \ --header 'Authorization: Bearer <token>'Newest first. A rep sees only the deals they own, whatever view says; q
matches the deal title or the customer’s name.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Responses
Section titled “Responses”Successful Response
Media typeapplication/json
CursorPage[WorkspaceOpportunity]
object
data
required
Data
Array<object>
WorkspaceOpportunityobject
id
required
Id
string
organization_id
required
Organization Id
string
organization_name
required
Organization Name
string
owner
required
Any of:
WorkspacePersonRef
A teammate named on a record: the id the server holds and the name to show.
object
user_id
required
User Id
string
name
required
Name
string
null
title
required
Title
string
stage
required
Stage
string
amount_minor
required
Amount Minor
integer
currency
required
Currency
string
revision
required
Revision
integer
created_at
required
Created At
string format: date-time
updated_at
required
Updated At
string format: date-time
scope_accepted_by
Any of:
WorkspacePersonRef
A teammate named on a record: the id the server holds and the name to show.
object
user_id
required
User Id
string
name
required
Name
string
null
has_more
Has More
boolean
Example
{ "data": [ { "stage": "new" } ], "has_more": false}Validation Error
Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context
object
Examplegenerated
{ "detail": [ { "loc": [ "example" ], "msg": "example", "type": "example", "input": "example", "ctx": {} } ]}