Create a meeting session artifact
Requests asynchronous generation of one summary or action_items artifact. Each type requires its own request. Generation requires transcript content and configured inference and currently reads at most the first 10,000 segments, so exceptionally long transcripts may produce incomplete artifacts or fail model limits.
POST
/
meeting_sessions
/
{id}
/
artifacts
JavaScript
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const MeetingSessionArtifact = await client.meetingSessions.artifacts.create('id', {
type: 'summary',
});
console.log(MeetingSessionArtifact.data);import os
from telnyx import Telnyx
client = Telnyx(
api_key=os.environ.get("TELNYX_API_KEY"), # This is the default and can be omitted
)
meeting_session_artifact = client.meeting_sessions.artifacts.create(
id="id",
type="summary",
)
print(meeting_session_artifact.data)
package main
import (
"context"
"fmt"
"github.com/team-telnyx/telnyx-go"
"github.com/team-telnyx/telnyx-go/option"
)
func main() {
client := telnyx.NewClient(
option.WithAPIKey("My API Key"),
)
artifact, err := client.MeetingSessions.Artifacts.New(
context.TODO(),
"id",
telnyx.MeetingSessionArtifactNewParams{
Type: "summary",
},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", artifact.Data)
}
package com.telnyx.sdk.example;
import com.telnyx.sdk.client.TelnyxClient;
import com.telnyx.sdk.client.okhttp.TelnyxOkHttpClient;
import com.telnyx.sdk.models.meetingSessions.artifacts.ArtifactCreateParams;
public final class Main {
private Main() {}
public static void main(String[] args) {
TelnyxClient client = TelnyxOkHttpClient.fromEnv();
ArtifactCreateParams params = ArtifactCreateParams.builder()
.type(ArtifactCreateParams.Type.SUMMARY)
.build();
var response = client.meetingSessions().artifacts().create("id", params);
}
}require "telnyx"
telnyx = Telnyx::Client.new(api_key: "My API Key")
meeting_session_artifact = telnyx.meeting_sessions.artifacts.create("id", type: :summary)
puts(meeting_session_artifact)<?php
require_once dirname(__DIR__) . '/vendor/autoload.php';
use Telnyx\Client;
use Telnyx\Core\Exceptions\APIException;
$client = new Client(apiKey: getenv('TELNYX_API_KEY') ?: 'My API Key');
try {
$meeting_session_artifact = $client->meetingSessions->artifacts->create(
'id',
type: 'summary',
);
var_dump($meeting_session_artifact);
} catch (APIException $e) {
echo $e->getMessage();
}telnyx meeting-sessions:artifacts create \
--api-key 'My API Key' \
--id id \
--type summarycurl --request POST \
--url https://api.telnyx.com/v2/meeting_sessions/{id}/artifacts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "summary"
}
'{
"data": {
"id": "mtgart_550e8400-e29b-41d4-a716-446655440000",
"session_id": "mtgsess_550e8400-e29b-41d4-a716-446655440001",
"type": "action_items",
"status": "pending",
"content": null,
"model_provenance": null,
"failure_reason": null,
"created_at": "2025-01-15T10:30:00Z",
"updated_at": "2025-01-15T10:30:00Z"
}
}{
"error": {
"code": "invalid_request",
"message": "request is invalid"
}
}{
"error": {
"code": "unauthorized",
"message": "invalid or missing credentials"
}
}{
"error": {
"code": "forbidden",
"message": "credential is not permitted"
}
}{
"error": {
"code": "not_found",
"message": "meeting session not found"
}
}{
"error": {
"code": "invalid_state",
"message": "only scheduled sessions can be updated"
}
}{
"error": {
"code": "invalid_request",
"message": "request body too large"
}
}{
"error": {
"code": "auth_overloaded",
"message": "authentication temporarily overloaded"
}
}{
"error": {
"code": "internal_error",
"message": "internal server error"
}
}{
"error": {
"code": "not_configured",
"message": "artifact generation is not configured"
}
}Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Unique identifier for the meeting session.
Example:
"mtgsess_a1b2c3d4-e5f6-7890-abcd-ef1234567890"
Body
application/json
Type of artifact to generate from the session.
Available options:
summary, action_items Response
Artifact creation accepted and is being processed asynchronously.
Show child attributes
Show child attributes
Examples:
{
"id": "mtgart_550e8400-e29b-41d4-a716-446655440000",
"session_id": "mtgsess_550e8400-e29b-41d4-a716-446655440001",
"type": "action_items",
"status": "pending",
"content": null,
"model_provenance": null,
"failure_reason": null,
"created_at": "2025-01-15T10:30:00Z",
"updated_at": "2025-01-15T10:30:00Z"
}
{
"id": "mtgart_550e8400-e29b-41d4-a716-446655440002",
"session_id": "mtgsess_550e8400-e29b-41d4-a716-446655440001",
"type": "summary",
"status": "completed",
"content": {
"text": "The team reviewed project goals and agreed on next steps."
},
"model_provenance": {
"model": "example-model",
"provider": "example-provider"
},
"failure_reason": null,
"created_at": "2025-01-15T10:30:00Z",
"updated_at": "2025-01-15T10:31:00Z"
}
Was this page helpful?
JavaScript
import Telnyx from 'telnyx';
const client = new Telnyx({
apiKey: process.env['TELNYX_API_KEY'], // This is the default and can be omitted
});
const MeetingSessionArtifact = await client.meetingSessions.artifacts.create('id', {
type: 'summary',
});
console.log(MeetingSessionArtifact.data);import os
from telnyx import Telnyx
client = Telnyx(
api_key=os.environ.get("TELNYX_API_KEY"), # This is the default and can be omitted
)
meeting_session_artifact = client.meeting_sessions.artifacts.create(
id="id",
type="summary",
)
print(meeting_session_artifact.data)
package main
import (
"context"
"fmt"
"github.com/team-telnyx/telnyx-go"
"github.com/team-telnyx/telnyx-go/option"
)
func main() {
client := telnyx.NewClient(
option.WithAPIKey("My API Key"),
)
artifact, err := client.MeetingSessions.Artifacts.New(
context.TODO(),
"id",
telnyx.MeetingSessionArtifactNewParams{
Type: "summary",
},
)
if err != nil {
panic(err.Error())
}
fmt.Printf("%+v\n", artifact.Data)
}
package com.telnyx.sdk.example;
import com.telnyx.sdk.client.TelnyxClient;
import com.telnyx.sdk.client.okhttp.TelnyxOkHttpClient;
import com.telnyx.sdk.models.meetingSessions.artifacts.ArtifactCreateParams;
public final class Main {
private Main() {}
public static void main(String[] args) {
TelnyxClient client = TelnyxOkHttpClient.fromEnv();
ArtifactCreateParams params = ArtifactCreateParams.builder()
.type(ArtifactCreateParams.Type.SUMMARY)
.build();
var response = client.meetingSessions().artifacts().create("id", params);
}
}require "telnyx"
telnyx = Telnyx::Client.new(api_key: "My API Key")
meeting_session_artifact = telnyx.meeting_sessions.artifacts.create("id", type: :summary)
puts(meeting_session_artifact)<?php
require_once dirname(__DIR__) . '/vendor/autoload.php';
use Telnyx\Client;
use Telnyx\Core\Exceptions\APIException;
$client = new Client(apiKey: getenv('TELNYX_API_KEY') ?: 'My API Key');
try {
$meeting_session_artifact = $client->meetingSessions->artifacts->create(
'id',
type: 'summary',
);
var_dump($meeting_session_artifact);
} catch (APIException $e) {
echo $e->getMessage();
}telnyx meeting-sessions:artifacts create \
--api-key 'My API Key' \
--id id \
--type summarycurl --request POST \
--url https://api.telnyx.com/v2/meeting_sessions/{id}/artifacts \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "summary"
}
'{
"data": {
"id": "mtgart_550e8400-e29b-41d4-a716-446655440000",
"session_id": "mtgsess_550e8400-e29b-41d4-a716-446655440001",
"type": "action_items",
"status": "pending",
"content": null,
"model_provenance": null,
"failure_reason": null,
"created_at": "2025-01-15T10:30:00Z",
"updated_at": "2025-01-15T10:30:00Z"
}
}{
"error": {
"code": "invalid_request",
"message": "request is invalid"
}
}{
"error": {
"code": "unauthorized",
"message": "invalid or missing credentials"
}
}{
"error": {
"code": "forbidden",
"message": "credential is not permitted"
}
}{
"error": {
"code": "not_found",
"message": "meeting session not found"
}
}{
"error": {
"code": "invalid_state",
"message": "only scheduled sessions can be updated"
}
}{
"error": {
"code": "invalid_request",
"message": "request body too large"
}
}{
"error": {
"code": "auth_overloaded",
"message": "authentication temporarily overloaded"
}
}{
"error": {
"code": "internal_error",
"message": "internal server error"
}
}{
"error": {
"code": "not_configured",
"message": "artifact generation is not configured"
}
}