Skip to main content

Gravy Connect API - Public (1.0)

Download OpenAPI specification:Download

Public API endpoints for Gravy Connect (no authentication required)

history

History endpoints

Get paginated history for a connection

Retrieve history items with pagination, filtering, and sorting support

path Parameters
connectionId
required
string

Connection ID

query Parameters
page
number
Default: 1
Example: page=1

Page number (1-based)

limit
number [ 1 .. 100 ]
Default: 20
Example: limit=20

Items per page (1-100)

sortBy
string
Enum: "createdAt" "updatedAt" "title" "type"

Sort field

sortOrder
string
Enum: "asc" "desc"

Sort order

type
string
Example: type=book

Filter by type (book/movie)

search
string
Example: search=Harry Potter

Search by title

startDate
string
Example: startDate=2024-01-01T00:00:00.000Z

Filter by start date (ISO)

endDate
string
Example: endDate=2024-12-31T23:59:59.999Z

Filter by end date (ISO)

Responses

Response samples

Content type
application/json
{
  • "data": [
    ],
  • "meta": {
    },
  • "timestamp": "2024-01-15T10:30:00.000Z",
  • "version": "v1"
}

connections

Get all connections for a developer

query Parameters
page
number
Default: 1
Example: page=1

Page number (1-based)

limit
number [ 1 .. 100 ]
Default: 20
Example: limit=20

Number of items per page

sortBy
string
Default: "createdAt"
Enum: "createdAt" "updatedAt"

Sort by field

sortOrder
string
Default: "desc"
Enum: "asc" "desc"

Sort order

status
string
Example: status=connected

Filter by status

integrationId
string
Example: integrationId=spotify

Filter by integration ID

Responses

Response samples

Content type
application/json
{
  • "data": [
    ],
  • "meta": {
    },
  • "timestamp": "2024-01-15T10:30:00.000Z",
  • "version": "v1"
}

Get a connection by ID for a developer

path Parameters
id
required
string

Connection ID

Responses

Response samples

Content type
application/json
{
  • "id": "string",
  • "integrationId": "string",
  • "status": "pending",
  • "connectionMetadata": { }
}

Delete a connection for a developer

path Parameters
id
required
string

Connection ID

Responses

intent-token

Create intent token

Request Body schema: application/json
required
integrationId
required
string

The integration ID

products
required
Array of strings
Deprecated

The products to be requested

userId
required
string

The client managed user ID

prompts
required
Array of arrays

AI Prompts to be used for the connection. Each prompt contains a name (key) and value (instruction) that will be used to customize the AI behavior for this connection.

debug
required
boolean

Whether the intent token is for debug purposes

Responses

Request samples

Content type
application/json
{
  • "integrationId": "audible",
  • "products": [
    ],
  • "userId": "123",
  • "prompts": [
    ],
  • "debug": false
}

Response samples

Content type
application/json
{}

IntentTokenController_getIntentTokenFromShortToken

query Parameters
url
required
string
adid
required
string
adj_campaign
required
string
adj_t
required
string
adj_adgroup
required
string

Responses

integrations

Get all integrations

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Get an integration by slug

path Parameters
slug
required
string

Integration slug

Responses

Response samples

Content type
application/json
{
  • "slug": "string",
  • "name": "string",
  • "type": "string",
  • "logoUrl": "string",
  • "url": "string",
  • "preAutomationSteps": [
    ]
}

auth

OAuth 2.0 Client Credentials Token Endpoint

Exchange client credentials for an access token using OAuth 2.0 client credentials flow

Request Body schema: application/json
required
grant_type
required
string

The grant type

client_id
required
string

The client ID

client_secret
required
string

The client secret

scope
required
string

The scope

Responses

Request samples

Content type
application/json
{
  • "grant_type": "client_credentials",
  • "client_id": "123",
  • "client_secret": "123",
  • "scope": "read write"
}

Response samples

Content type
application/json
{
  • "access_token": "123",
  • "token_type": "Bearer",
  • "expires_in": 3600,
  • "scope": "read write"
}