api_keys

Get a blank API key

Changed on

Returns an unsaved API key bound to the current user, used to prime the creation form.

The endpoint rejects both API key and bearer token authentication, so it is reachable only with a browser session, and that session must have been re-authenticated within the last hour.

get/api_keys/new.json

Request

  • Base URL: https://e621.net
  • URL: https://e621.net/api_keys/new.json
  • Auth: one of:
    • none
    • HTTP basic
    • API key in query parameter login and API key in query parameter api_key

Response

A blank API key

idinteger required

The unique ID of the API key

user_idinteger required

The ID of the user who owns the key

namestring required

The name of the API key

keystring

The API key token (only shown on creation)

created_atstring date-time required

When the API key was created

updated_atstring date-time required

When the API key was last updated

last_used_atstring date-time nullable

When the API key was last used

last_ip_addressstring nullable

The last IP address that used this key

expires_atstring date-time nullable

When the API key expires

Changes