Skip to content

Commit 56653dc

Browse files
[2026-02-26] Release: Update Connect API Starter Kit (#30)
Release: Update Connect API Starter Kit Generated on: Thu Feb 26 23:46:42 UTC 2026 Source commit: e3f932ec17bd355336cfb1d9cf7164e4a1a046b6 Co-authored-by: canva-sdk-releases[bot] <227329455+canva-sdk-releases[bot]@users.noreply.github.com>
1 parent 219b2b8 commit 56653dc

4 files changed

Lines changed: 1509 additions & 339 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Changelog
22

3+
## 2026-02-27
4+
5+
### 🔧 Changed
6+
7+
- Refreshed the OpenAPI yml spec `openapi/spec.yml` to be based on the latest Connect API
8+
39
## 2026-01-15
410

511
### 🔧 Changed

client/ts/sdk.gen.ts

Lines changed: 58 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,12 @@ import type {
130130
RevokeTokensData,
131131
RevokeTokensError,
132132
RevokeTokensResponse2,
133+
GetOidcJwksData,
134+
GetOidcJwksError,
135+
GetOidcJwksResponse,
136+
UserInfoData,
137+
UserInfoError,
138+
UserInfoResponse2,
133139
CreateDesignResizeJobData,
134140
CreateDesignResizeJobError,
135141
CreateDesignResizeJobResponse2,
@@ -341,17 +347,9 @@ export class AssetService {
341347

342348
export class AutofillService {
343349
/**
344-
* <Warning>
345-
*
346-
* Brand templates were migrated to use a new ID format in September 2025. If your integration stores brand template IDs, you'll need to migrate to use the new IDs. Old brand template IDs will continue to be accepted for 6 months to give you time to migrate to the new IDs.
347-
*
348-
* </Warning>
349-
*
350-
* <Note>
350+
* WARNING: Brand templates were migrated to use a new ID format in September 2025. If your integration stores brand template IDs, you'll need to migrate to use the new IDs. Old brand template IDs will continue to be accepted for 6 months to give you time to migrate to the new IDs.
351351
*
352-
* To use this API, your integration must act on behalf of a user that's a member of a [Canva Enterprise](https://www.canva.com/enterprise/) organization.
353-
*
354-
* </Note>
352+
* AVAILABILITY: To use this API, your integration must act on behalf of a user that's a member of a [Canva Enterprise](https://www.canva.com/enterprise/) organization.
355353
*
356354
* Starts a new [asynchronous job](https://www.canva.dev/docs/connect/api-requests-responses/#asynchronous-job-endpoints) to autofill a Canva design using a brand template and input data.
357355
*
@@ -366,11 +364,7 @@ export class AutofillService {
366364
*
367365
* WARNING: Chart data fields are a [preview feature](https://www.canva.dev/docs/connect/#preview-apis). There might be unannounced breaking changes to this feature which won't produce a new API version.
368366
*
369-
* <Note>
370-
*
371-
* For more information on the workflow for using asynchronous jobs, see [API requests and responses](https://www.canva.dev/docs/connect/api-requests-responses/#asynchronous-job-endpoints). You can check the status and get the results of autofill jobs created with this API using the [Get design autofill job API](https://www.canva.dev/docs/connect/api-reference/autofills/get-design-autofill-job/).
372-
*
373-
* </Note>
367+
* NOTE: For more information on the workflow for using asynchronous jobs, see [API requests and responses](https://www.canva.dev/docs/connect/api-requests-responses/#asynchronous-job-endpoints). You can check the status and get the results of autofill jobs created with this API using the [Get design autofill job API](https://www.canva.dev/docs/connect/api-reference/autofills/get-design-autofill-job/).
374368
*/
375369
public static createDesignAutofillJob<ThrowOnError extends boolean = false>(
376370
options?: Options<CreateDesignAutofillJobData, ThrowOnError>,
@@ -390,11 +384,7 @@ export class AutofillService {
390384
}
391385

392386
/**
393-
* <Note>
394-
*
395-
* To use this API, your integration must act on behalf of a user that's a member of a [Canva Enterprise](https://www.canva.com/enterprise/) organization.
396-
*
397-
* </Note>
387+
* AVAILABILITY: To use this API, your integration must act on behalf of a user that's a member of a [Canva Enterprise](https://www.canva.com/enterprise/) organization.
398388
*
399389
* Get the result of a design autofill job that was created using the [Create design autofill job
400390
* API](https://www.canva.dev/docs/connect/api-reference/autofills/create-design-autofill-job/).
@@ -417,17 +407,9 @@ export class AutofillService {
417407

418408
export class BrandTemplateService {
419409
/**
420-
* <Warning>
421-
*
422-
* Brand templates were migrated to use a new ID format in September 2025. If your integration stores brand template IDs, you'll need to migrate to use the new IDs. Old brand template IDs will continue to be accepted for 6 months to give you time to migrate to the new IDs.
410+
* WARNING: Brand templates were migrated to use a new ID format in September 2025. If your integration stores brand template IDs, you'll need to migrate to use the new IDs. Old brand template IDs will continue to be accepted for 6 months to give you time to migrate to the new IDs.
423411
*
424-
* </Warning>
425-
*
426-
* <Note>
427-
*
428-
* To use this API, your integration must act on behalf of a user that's a member of a [Canva Enterprise](https://www.canva.com/enterprise/) organization.
429-
*
430-
* </Note>
412+
* AVAILABILITY: To use this API, your integration must act on behalf of a user that's a member of a [Canva Enterprise](https://www.canva.com/enterprise/) organization.
431413
*
432414
* Get a list of the [brand templates](https://www.canva.com/help/publish-team-template/) the user has access to.
433415
*/
@@ -445,17 +427,9 @@ export class BrandTemplateService {
445427
}
446428

447429
/**
448-
* <Warning>
449-
*
450-
* Brand templates were migrated to use a new ID format in September 2025. If your integration stores brand template IDs, you'll need to migrate to use the new IDs. Old brand template IDs will continue to be accepted for 6 months to give you time to migrate to the new IDs.
451-
*
452-
* </Warning>
453-
*
454-
* <Note>
455-
*
456-
* To use this API, your integration must act on behalf of a user that's a member of a [Canva Enterprise](https://www.canva.com/enterprise/) organization.
430+
* WARNING: Brand templates were migrated to use a new ID format in September 2025. If your integration stores brand template IDs, you'll need to migrate to use the new IDs. Old brand template IDs will continue to be accepted for 6 months to give you time to migrate to the new IDs.
457431
*
458-
* </Note>
432+
* AVAILABILITY: To use this API, your integration must act on behalf of a user that's a member of a [Canva Enterprise](https://www.canva.com/enterprise/) organization.
459433
*
460434
* Retrieves the metadata for a brand template.
461435
*/
@@ -473,17 +447,9 @@ export class BrandTemplateService {
473447
}
474448

475449
/**
476-
* <Warning>
477-
*
478-
* Brand templates were migrated to use a new ID format in September 2025. If your integration stores brand template IDs, you'll need to migrate to use the new IDs. Old brand template IDs will continue to be accepted for 6 months to give you time to migrate to the new IDs.
479-
*
480-
* </Warning>
450+
* WARNING: Brand templates were migrated to use a new ID format in September 2025. If your integration stores brand template IDs, you'll need to migrate to use the new IDs. Old brand template IDs will continue to be accepted for 6 months to give you time to migrate to the new IDs.
481451
*
482-
* <Note>
483-
*
484-
* To use this API, your integration must act on behalf of a user that's a member of a [Canva Enterprise](https://www.canva.com/enterprise/) organization.
485-
*
486-
* </Note>
452+
* AVAILABILITY: To use this API, your integration must act on behalf of a user that's a member of a [Canva Enterprise](https://www.canva.com/enterprise/) organization.
487453
*
488454
* Gets the dataset definition of a brand template. If the brand
489455
* template contains autofill data fields, this API returns an object with the data field
@@ -881,17 +847,12 @@ export class DesignService {
881847
}
882848

883849
/**
884-
* <Warning>
885-
*
886-
* This API is currently provided as a preview. Be aware of the following:
887-
*
888-
* - There might be unannounced breaking changes.
889-
* - Any breaking changes to preview APIs won't produce a new [API version](https://www.canva.dev/docs/connect/versions/).
890-
* - Public integrations that use preview APIs will not pass the review process, and can't be made available to all Canva users.
891-
*
892-
* </Warning>
893-
*
894850
* Lists the available file formats for [exporting a design](https://www.canva.dev/docs/connect/api-reference/exports/create-design-export-job/).
851+
*
852+
* <Note>
853+
* The available export formats depend on the design type and the types of pages in the design.
854+
* In general, the available export formats returned are only those that are supported by every page type in the design.
855+
* </Note>
895856
*/
896857
public static getDesignExportFormats<ThrowOnError extends boolean = false>(
897858
options: Options<GetDesignExportFormatsData, ThrowOnError>,
@@ -1315,13 +1276,44 @@ export class OauthService {
13151276
}
13161277
}
13171278

1279+
export class OidcService {
1280+
/**
1281+
* Gets the JSON Web Key Set (public keys) for OIDC. These keys are used to verify JWTs in OpenID Connect flows.
1282+
*/
1283+
public static getOidcJwks<ThrowOnError extends boolean = false>(
1284+
options?: Options<GetOidcJwksData, ThrowOnError>,
1285+
) {
1286+
return (options?.client ?? client).get<
1287+
GetOidcJwksResponse,
1288+
GetOidcJwksError,
1289+
ThrowOnError
1290+
>({
1291+
...options,
1292+
url: "/v1/oidc/jwks",
1293+
});
1294+
}
1295+
1296+
/**
1297+
* Fetches the current UserInfo claims for the authorized user. This is the same fields
1298+
* returned by a id_token returns during authorization.
1299+
*/
1300+
public static userInfo<ThrowOnError extends boolean = false>(
1301+
options?: Options<UserInfoData, ThrowOnError>,
1302+
) {
1303+
return (options?.client ?? client).get<
1304+
UserInfoResponse2,
1305+
UserInfoError,
1306+
ThrowOnError
1307+
>({
1308+
...options,
1309+
url: "/v1/oidc/userinfo",
1310+
});
1311+
}
1312+
}
1313+
13181314
export class ResizeService {
13191315
/**
1320-
* <Note>
1321-
*
1322-
* To use this API, your integration must act on behalf of a user that's on a Canva plan with premium features (such as Canva Pro).
1323-
*
1324-
* </Note>
1316+
* AVAILABILITY: To use this API, your integration must act on behalf of a user that's on a Canva plan with premium features (such as Canva Pro).
13251317
*
13261318
* Starts a new [asynchronous job](https://www.canva.dev/docs/connect/api-requests-responses/#asynchronous-job-endpoints)
13271319
* to create a resized copy of a design. The new resized design is
@@ -1365,11 +1357,7 @@ export class ResizeService {
13651357
}
13661358

13671359
/**
1368-
* <Note>
1369-
*
1370-
* To use this API, your integration must act on behalf of a user that's on a Canva plan with premium features (such as Canva Pro).
1371-
*
1372-
* </Note>
1360+
* AVAILABILITY: To use this API, your integration must act on behalf of a user that's on a Canva plan with premium features (such as Canva Pro).
13731361
*
13741362
* Gets the result of a design resize job that was created using the [Create design resize
13751363
* job API](https://www.canva.dev/docs/connect/api-reference/resizes/create-design-resize-job/).

0 commit comments

Comments
 (0)