Skip to content

Outbound Apps: add a way to list AND read app-library templates (metadata/config) — companion to createApplicationByTemplate #744 #752

Description

@tarracharan-glitch

Thanks for shipping createApplicationByTemplate (#744) — it works great. But
there's a discoverability gap: it takes a templateId, yet there's no way to
list which template IDs exist.

  • The console has the outbound app-library picker, so the catalog is known
    server-side.
  • SDK: management.outboundApplication has no listTemplates /
    getTemplates method (2.9.0).
  • REST: I probed the obvious paths and all 404 —
    /v1/mgmt/outbound/app/templates, /v1/mgmt/outbound/templates,
    /v1/mgmt/outbound/apptemplates, … (E011006 "endpoint not found").

So a caller has to hardcode or guess slugs. I only found the ones we use by
trial-and-error against the create endpoint (hubspot, google, slack,
github, google-calendar all work — but nothing tells you that up front).

Use case

We register Outbound Apps programmatically from an internal admin UI. We want to
show admins a template picker populated from Descope's library, instead of a
free-text "type the slug" field or a hardcoded list that drifts from your
catalog.

Proposed

A management method (and underlying REST endpoint) to list templates, e.g.:

const { templates } = await client.management.outboundApplication.listTemplates();
// → [{ id: "hubspot", name: "HubSpot", logo?, defaultScopes?, ... }, ...]

Even an id+name list would be enough to build a picker.

Environment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions