Custom Provider Code

Manage custom provider code editor access.

Custom Provider Code object

Attributes

object

String

String representing the object's type

id

String

ID of the code bucket

token

String

Token to access the code editor

expires_at

Date

Expiration date of the token

{
"object": "custom_server.code_editor_token",
"id": "example_id",
"token": "example_token",
"expires_at": "2026-02-17T16:32:57.989Z"
}

Get code editor token

Get a token to access the code editor for a custom provider.

URL Parameters

custom_provider_id

String

The unique identifier for the custom_provider

GEThttp://api.metorial.com/custom-providers/:custom_provider_id/code-editor-token
curl -X GET "https://api.metorial.com/custom-providers/cus_Rm4Mnheq2bfEPhBhP7SY/code-editor-token" \
-H "Authorization: Bearer metorial_sk_..."