curl --request POST \
--url https://api.dynamosql.com/v1/schemas \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"schemaName": "myschema",
"region": "us-east-1",
"accountId": "123456789012",
"roleArn": "arn:aws:iam::123456789012:role/DynamoSQLReadRole",
"externalId": "dsql-ext-7f3a9c2b",
"tableAllowlist": [
"Users",
"Orders",
"Products"
]
}
'{
"success": true,
"data": {
"tenantId": "tenant-abc123",
"schemaName": "myschema",
"region": "us-east-1",
"accountId": "123456789012",
"roleArn": "arn:aws:iam::123456789012:role/DynamoSQLReadRole",
"externalId": "dsql-ext-7f3a9c2b",
"tableAllowlist": [
"Users",
"Orders",
"Products"
],
"status": "active",
"createdAt": "2026-03-11T10:00:00.000Z",
"updatedAt": "2026-03-11T10:00:00.000Z"
}
}{
"success": false,
"error": {
"message": "startDate must be before or equal to endDate"
}
}{
"success": false,
"error": {
"message": "Unauthorized"
}
}{
"success": false,
"error": {
"message": "Tenant admin access required"
}
}{
"success": false,
"error": {
"message": "A schema with that name already exists"
}
}Schemas
Create Schema
Connect DynamoSQL to DynamoDB tables in your AWS account.
POST
/
v1
/
schemas
curl --request POST \
--url https://api.dynamosql.com/v1/schemas \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"schemaName": "myschema",
"region": "us-east-1",
"accountId": "123456789012",
"roleArn": "arn:aws:iam::123456789012:role/DynamoSQLReadRole",
"externalId": "dsql-ext-7f3a9c2b",
"tableAllowlist": [
"Users",
"Orders",
"Products"
]
}
'{
"success": true,
"data": {
"tenantId": "tenant-abc123",
"schemaName": "myschema",
"region": "us-east-1",
"accountId": "123456789012",
"roleArn": "arn:aws:iam::123456789012:role/DynamoSQLReadRole",
"externalId": "dsql-ext-7f3a9c2b",
"tableAllowlist": [
"Users",
"Orders",
"Products"
],
"status": "active",
"createdAt": "2026-03-11T10:00:00.000Z",
"updatedAt": "2026-03-11T10:00:00.000Z"
}
}{
"success": false,
"error": {
"message": "startDate must be before or equal to endDate"
}
}{
"success": false,
"error": {
"message": "Unauthorized"
}
}{
"success": false,
"error": {
"message": "Tenant admin access required"
}
}{
"success": false,
"error": {
"message": "A schema with that name already exists"
}
}Required scope:
schemas:writeAuthorizations
Body
application/json
Response
Schema created. A background metadata refresh has been started.