Query templates and flows via API

These endpoints give you the IDs you need to issue: each template’s credentialTemplateId and each approval flow’s flowId. The common conventions (base URL, pagination, errors) are in API Endpoints.

GET /template/list

Lists your organization’s credential templates, with filters and pagination.

Headers

Header Required Value
Authorization Yes Bearer <idToken>

Query parameters (all optional)

Parameter Type Description
name string Template name. Use it to search templates from your system.
status string Template status: active or archived.
credentialTemplateType string CTDL credential type. Accepts one of the 31 values in the table below.
credentialCode string Code your organization assigned to the recognition template when creating it.
tags string Template tags, separated by commas.
page integer Page number. Starts at 1.

credentialTemplateType values

Use the English identifier exactly as shown, matching upper and lower case. What each type means is explained in Credential categories and types.

Category Values
Badges and activity achievements Achievement, Badge, Award, Competency, Assignment, Fieldwork, Membership, CommunityService, CoCurricular
Certificates, programs, and licenses Certificate, CertificateOfCompletion, Certification, MicroCredential, License, ApprenticeshipCertificate, JourneymanCertificate, MasterCertificate, Assessment, Course, LearningProgram, QualityAssuranceCredential
Academic degrees and diplomas Degree, Diploma, SecondarySchoolDiploma, GeneralEducationDevelopment, AssociateDegree, BachelorDegree, MasterDegree, DoctoralDegree, ProfessionalDoctorate, ResearchDoctorate

Example

curl -X 'GET' \
  'https://public-api.acreditta.com/template/list?status=active&credentialTemplateType=MicroCredential&page=1' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer ID_TOKEN'

200 response: count, next, previous, and results. Each item in results includes:

Field Type Description
credentialTemplateId string Template ID. Use it in POST /credential/issue and POST /credential/batch/create.
name string Template name.
status string Template status.
imageUrl string (URL) Template image.
getIssueCount integer Number of credentials issued with the template.
previousVersions array Previous versions of the template.
createdAt string (date-time) Creation date.

Errors: 401, 402, and 406.

GET /flows

Lists the approval flows set up in your organization.

Headers: Authorization: Bearer <idToken>, required.

Query parameters (all optional)

Parameter Type Description
pagination boolean true paginates the results; use it together with page.
page integer Page number, when pagination is true.

200 response: count and results. Each item in results includes:

Field Type Description
id string (UUID) Flow ID. Use it as flowId when closing a batch.
name string Flow name.
created_at string (date-time) Creation date.
organization_id integer Your organization’s ID.

Errors: 401, 402, and 406.

🔎 Note: flows are created and edited in Acreditta Platform, not through the API. See Approval flow design and administration.


CONTENIDO