Developers
Call the HTTP API of TYPO3, and add your own actions in an extension. You must know HTTP. For extensions, you must also know PHP and TYPO3.
- Quick start: from the installation to the first request
- Cookbook: recipes in PHP, JavaScript and TypeScript
- Tutorial: build your first action with its own scope
- API reference: all endpoints in Swagger UI
Developers
Call the HTTP API of TYPO3, and add your own actions in an extension. You must know HTTP. For extensions, you must also know PHP and TYPO3.
- Quick start: from the installation to the first request
- Cookbook: recipes in PHP, JavaScript and TypeScript
- Tutorial: build your first action with its own scope
- API reference: all endpoints in Swagger UI
- Quick start: from the installation to the first request
- Cookbook: recipes in PHP, JavaScript and TypeScript
- Tutorial: build your first action with its own scope
- API reference: all endpoints in Swagger UI
Quick start#
API Hub needs a Composer-based installation of TYPO3 14.3.10 or
later and PHP 8.2 or later. The delivery channel is the
TYPO3 Suite. Your TYPO3 partner sets up
the access to its repository packages.typo3.com.
composer config repositories.typo3-suite composer \
https://packages.typo3.com
composer require typo3-suite/hub
vendor/bin/typo3 extension:setup --extension=hubOpen Administration > Integrations > API Hub, create an
app of the type Static token, select the scope
content:read and copy the token, see
Creating a static token app.
curl -H 'Authorization: Bearer <token>' \
'https://example.org/typo3/api/v1/records/pages?limit=2'{
"items": [
{
"uid": 3,
"pid": 0,
"label": "Congratulations",
"type": "1",
"hidden": false,
"language": 0
},
{
"uid": 85,
"pid": 3,
"label": "Home",
"type": "4",
"hidden": false,
"language": 0
}
],
"next": "WzMsMCw4NV0"
}API Hub needs a Composer-based installation of TYPO3 14.3.10 or
later and PHP 8.2 or later. The delivery channel is the
TYPO3 Suite. Your TYPO3 partner sets up
the access to its repository packages.typo3.com.
composer config repositories.typo3-suite composer \
https://packages.typo3.com
composer require typo3-suite/hub
vendor/bin/typo3 extension:setup --extension=hubInstall the extension
API Hub needs a Composer-based installation of TYPO3 14.3.10 or
later and PHP 8.2 or later. The delivery channel is the
TYPO3 Suite. Your TYPO3 partner sets up
the access to its repository packages.typo3.com.
composer config repositories.typo3-suite composer \
https://packages.typo3.com
composer require typo3-suite/hub
vendor/bin/typo3 extension:setup --extension=hubcomposer config repositories.typo3-suite composer \
https://packages.typo3.com
composer require typo3-suite/hub
vendor/bin/typo3 extension:setup --extension=hub
Open Administration > Integrations > API Hub, create an
app of the type Static token, select the scope
content:read and copy the token, see
Creating a static token app.
Create an app
Open Administration > Integrations > API Hub, create an
app of the type Static token, select the scope
content:read and copy the token, see
Creating a static token app.
curl -H 'Authorization: Bearer <token>' \
'https://example.org/typo3/api/v1/records/pages?limit=2'{
"items": [
{
"uid": 3,
"pid": 0,
"label": "Congratulations",
"type": "1",
"hidden": false,
"language": 0
},
{
"uid": 85,
"pid": 3,
"label": "Home",
"type": "4",
"hidden": false,
"language": 0
}
],
"next": "WzMsMCw4NV0"
}Send the first request
curl -H 'Authorization: Bearer <token>' \
'https://example.org/typo3/api/v1/records/pages?limit=2'curl -H 'Authorization: Bearer <token>' \
'https://example.org/typo3/api/v1/records/pages?limit=2'
{
"items": [
{
"uid": 3,
"pid": 0,
"label": "Congratulations",
"type": "1",
"hidden": false,
"language": 0
},
{
"uid": 85,
"pid": 3,
"label": "Home",
"type": "4",
"hidden": false,
"language": 0
}
],
"next": "WzMsMCw4NV0"
}{
"items": [
{
"uid": 3,
"pid": 0,
"label": "Congratulations",
"type": "1",
"hidden": false,
"language": 0
},
{
"uid": 85,
"pid": 3,
"label": "Home",
"type": "4",
"hidden": false,
"language": 0
}
],
"next": "WzMsMCw4NV0"
}
Where to go next#
Paginate, create, update, upload, handle errors and run the OAuth flow, with real requests and responses.
Build an action with its own scope and errors, and see what TYPO3 generates from it.
All endpoints with their parameters and results, in Swagger UI.
Concepts, installation and features.
Endpoints, authentication, scopes, records, files, errors and backend JavaScript.
Actions, targets, parameters, errors, scopes and JSON Schema.
Paginate, create, update, upload, handle errors and run the OAuth flow, with real requests and responses.
Cookbook
Paginate, create, update, upload, handle errors and run the OAuth flow, with real requests and responses.
Build an action with its own scope and errors, and see what TYPO3 generates from it.
Tutorial: your first action
Build an action with its own scope and errors, and see what TYPO3 generates from it.
All endpoints with their parameters and results, in Swagger UI.
Concepts, installation and features.
Endpoints, authentication, scopes, records, files, errors and backend JavaScript.
Using the API
Endpoints, authentication, scopes, records, files, errors and backend JavaScript.
Actions, targets, parameters, errors, scopes and JSON Schema.