storefrontAccessTokenCreate mutation
Creates a storefront access token.
On this page
Interactive example
This is an example mutation query. Use the embedded interactive tool below to edit the query.
Hint: use Ctrl + Space for autocompleting fields.
mutation storefrontAccessTokenCreate($input: StorefrontAccessTokenInput!) { storefrontAccessTokenCreate(input: $input) {} } { “input”: {
<font style="color:#1F61A0;">shop</font> <font style="color:#555555;">{</font>
<font style="color:#1F61A0;">id</font>
<font style="color:#555555;">}</font>
<font style="color:#1F61A0;">storefrontAccessToken</font> <font style="color:#555555;">{</font>
<font style="color:#1F61A0;">id</font>
<font style="color:#555555;">}</font>
<font style="color:#1F61A0;">userErrors</font> <font style="color:#555555;">{</font>
<font style="color:#1F61A0;">field</font>
<font style="color:#1F61A0;">message</font>
<font style="color:#555555;">}</font>
} }
<font style="color:#8B2BB9;">"title"</font><font style="color:#555555;">:</font> <font style="color:#D64292;">"placeholder"</font>
Arguments
StorefrontAccessTokenInput fields
- title (
[String!](https://shopify.dev/docs/admin-api/graphql/reference/scalar#string-2021-01)
) REQUIRED
A title for the storefront access token.
Return fields
- shop (
[Shop!](https://shopify.dev/docs/admin-api/graphql/reference/store-properties/shop)
)
The user’s shop. - storefrontAccessToken (
[StorefrontAccessToken](https://shopify.dev/docs/admin-api/graphql/reference/access/storefrontaccesstoken)
)
The storefront access token. - userErrors (
[[UserError!]!](https://shopify.dev/docs/admin-api/graphql/reference/usererror)
)
List of errors that occurred executing the mutation.