dipp REST API
  1. OAuth Integration
dipp REST API
  • Welcome to dipp REST API
  • OAuth Integration
    • Dipp OAuth Integration Guide
    • OpenID Connect Discovery
      GET
    • Authorization Endpoint
      GET
    • Token Endpoint
      POST
    • UserInfo Endpoint
      GET
    • UserInfo Endpoint (POST)
      POST
    • Token Revocation Endpoint
      POST
    • JSON Web Key Set
      GET
  • Get brands
    GET
  • Get layouts
    GET
  • Download CSV template
    GET
  • Get current quotation
    GET
  • Create campaign
    POST
  • Get campaigns
    GET
  • Download product bundle image by data
    POST
  • Schemas
    • Sample Schemas
      • Pet
      • Category
      • Tag
    • Schemas
      • Generic Error
      • DiscoveryDocument
      • Validation Error
      • TokenResponse
      • UserInfo
      • Address
      • JWKS
      • JWK
      • OAuthError
      • ConsentResponse
  1. OAuth Integration

Token Endpoint

POST
/oauth/v1/token
Exchanges authorization codes for access tokens and refresh tokens. you can provide client_id and client_secret in the body or using basic auth.

Request

Body Params application/x-www-form-urlencoded

Request Code Samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.withdipp.com/oauth/v1/token' \
--data-urlencode 'grant_type=' \
--data-urlencode 'code=' \
--data-urlencode 'client_id=' \
--data-urlencode 'client_secret=' \
--data-urlencode 'redirect_uri=' \
--data-urlencode 'code_verifier=' \
--data-urlencode 'refresh_token='

Responses

🟢200OK
application/json
Token response
Body

Example
{
    "access_token": "string",
    "token_type": "Bearer",
    "expires_in": 0,
    "refresh_token": "string",
    "id_token": "string",
    "scope": "string"
}
🟠400Bad Request
🟠401Unauthorized
Modified at 2025-08-18 07:53:31
Previous
Authorization Endpoint
Next
UserInfo Endpoint
Built with