# Authentication These endpoints provide various methods for authenticating users from a backend service. * **POST** [/auth/signin](/openapi/april-public/authentication/signincustomer/) Sign-in from a backend service on behalf of a consumer customer (B2C) or customer delegate (B2B) * **GET** [/auth/servicetokens/{serviceTokenId}](/openapi/april-public/authentication/getservicetoken/) Return details of a service token * **GET** [/auth/servicetokens](/openapi/april-public/authentication/queryservicetokens/) Return a paginated list of service tokens * **POST** [/auth/servicetokens](/openapi/april-public/authentication/createservicetoken/) Create a new service token * **PATCH** [/auth/servicetokens/{serviceTokenId}](/openapi/april-public/authentication/updateservicetoken/) Various actions for updating a service token ## Sign In Customer - [POST /auth/signin](https://docs.meetapril.io/openapi/april-public/openapi/authentication/signincustomer.md): Sign-in from a backend service on behalf of a consumer customer (B2C) or customer delegate (B2B). Used by custom integrations and e-commerce plugins as a form of single-sign-on for the checkout. If the customer has been authenticated with the merchant's website, this lets them also authenticate a known customer with April. This is a pre-requisite for using the checkout for a B2B customer. For both B2B and B2C customers having an authenticated session with the checkout also unlocks access to saved cards as a payment source. Note merchants need to have been registered as supporting B2B customer when onboarded to be able to support B2B customers in the checkout. ## Get Service Token - [GET /auth/servicetokens/{serviceTokenId}](https://docs.meetapril.io/openapi/april-public/openapi/authentication/getservicetoken.md): Return details of a service token. ## Update Service Token - [PATCH /auth/servicetokens/{serviceTokenId}](https://docs.meetapril.io/openapi/april-public/openapi/authentication/updateservicetoken.md): Various actions for updating a service token. ## Query Service Tokens - [GET /auth/servicetokens](https://docs.meetapril.io/openapi/april-public/openapi/authentication/queryservicetokens.md): Return a paginated list of service tokens. ## Create Service Token - [POST /auth/servicetokens](https://docs.meetapril.io/openapi/april-public/openapi/authentication/createservicetoken.md): Create a new service token.