You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 3, 2025. It is now read-only.
### Using spaces created in the US region for Management API
151
+
### Using spaces created in other regions for Management API
152
152
153
-
When creating a Space, you can select the EU or US region.
154
-
If you want to access a Space created in US region, you need to define the `apiEndpoint` parameter with 'api-us.storyblok.com' value, and forcing the `ssl` option for using HTTPS protocol:
153
+
When creating a Space, you can select the EU, US, CA, AP region. The default region is EU.
154
+
```
155
+
EU: api.storyblok.com
156
+
US: api-us.storyblok.com
157
+
CA: api-ca.storyblok.com
158
+
AP: api-ap.storyblok.com
159
+
```
160
+
161
+
For example:
162
+
If you want to access a Space created in US region, you need to define the `apiEndpoint` parameter with `api-us.storyblok.com` value, and forcing the `ssl` option for using HTTPS protocol:
155
163
156
164
```php
157
165
use Storyblok\ManagementClient;
@@ -193,10 +201,12 @@ use Storyblok\Client as StoryblokClient;
193
201
$client = new StoryblokClient('your-storyblok-readonly-accesstoken');
194
202
```
195
203
196
-
### Using spaces created in the US region
204
+
### Using spaces created in the other regions
205
+
206
+
When you create a Space, you can select the region: EU, US, CA or AP.
197
207
198
-
When you create a Space, you can select the region: EU or US.
199
-
If you want to access a Space created in US region, you need to define the `apiRegion` parameter with 'us' value (or 'US'):
208
+
For example:
209
+
If you want to access a Space created in US region, you need to define the `apiRegion` parameter with the `us` value (or `US`):
200
210
201
211
```php
202
212
use Storyblok\Client;
@@ -219,7 +229,7 @@ $client = new Client(
219
229
);
220
230
```
221
231
222
-
Now you have the `Storyblok\Client` instance you can start consuming data.
232
+
Now you have the `Storyblok\Client` instance you can start consuming data.
0 commit comments